only show MW if the core has loaded
This commit is contained in:
@@ -77,7 +77,9 @@ class Initialize extends AbstractLifecycleHandler {
|
|||||||
def showMW = {e ->
|
def showMW = {e ->
|
||||||
def mainFrame = application.getWindowManager().findWindow("main-frame")
|
def mainFrame = application.getWindowManager().findWindow("main-frame")
|
||||||
if (mainFrame != null)
|
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")
|
def show = new MenuItem("Open MuWire")
|
||||||
|
Reference in New Issue
Block a user