only show MW if the core has loaded

This commit is contained in:
Zlatin Balevsky
2019-10-23 06:39:25 +01:00
parent 1d5b12e2d7
commit 06679ffee0

View File

@@ -77,7 +77,9 @@ class Initialize extends AbstractLifecycleHandler {
def showMW = {e ->
def mainFrame = application.getWindowManager().findWindow("main-frame")
if (mainFrame != null)
mainFrame.setVisible(true)
Core core = application.getContext().findWindow("main-frame")
if (core != null)
mainFrame.setVisible(true)
}
def show = new MenuItem("Open MuWire")