рефакторинг хранения окон
This commit is contained in:
@@ -55,10 +55,10 @@ public class CheckAccount extends Pass<Boolean> {
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
if (UI.getMainWindow() != null) {
|
||||
UI.getMainWindow().getCallbackWindow().ShowAccount();
|
||||
if (Global.mainModule.getUI().getMainWindow() != null) {
|
||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowAccount();
|
||||
if (Global.mainModule.HasBugReport())
|
||||
UI.getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||
}
|
||||
if (Global.mainModule.getAccount().isAdmin())
|
||||
Global.mainModule.getPass(PassCode.PublishComponent).setControlsVisible(true);
|
||||
|
||||
Reference in New Issue
Block a user