рефакторинг хранения окон
This commit is contained in:
@@ -61,14 +61,14 @@ public class MainForm extends Form implements MainWindow {
|
||||
@Override
|
||||
public void AfterClose() {
|
||||
Global.mainModule.getPass(PassCode.CloseCurrentProject).Do();
|
||||
if (UI.getVersionsWindow() != null)
|
||||
((VersionsForm) UI.getVersionsWindow()).SaveSplitters();
|
||||
if (Global.mainModule.getUI().getVersionsWindow() != null)
|
||||
((FormWithSplitters)Global.mainModule.getUI().getVersionsWindow()).SaveSplitters();
|
||||
SaveCallbackPanel();
|
||||
SaveTestsPanel();
|
||||
SaveTestingPanel();
|
||||
//--
|
||||
if (UI.getDebugWindow() != null)
|
||||
((FormWithSplitters) UI.getDebugWindow()).SaveSplitters();
|
||||
if (Global.mainModule.getUI().getDebugWindow() != null)
|
||||
((FormWithSplitters) Global.mainModule.getUI().getDebugWindow()).SaveSplitters();
|
||||
//--
|
||||
Global.mainModule.getDb().SaveCredentials();
|
||||
//--
|
||||
@@ -245,7 +245,7 @@ public class MainForm extends Form implements MainWindow {
|
||||
RemoveProjectPanel();
|
||||
InstallProjectPanel();
|
||||
restoreGlobalTab();
|
||||
UI.getDebugWindow().DropCompilationTasksComparison();
|
||||
Global.mainModule.getUI().getDebugWindow().DropCompilationTasksComparison();
|
||||
mainMenuBar.ShowProject(true);
|
||||
}
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user