mirror of https://github.com/zlatinb/muwire
fixes
parent
06679ffee0
commit
439b3bf18b
|
@ -76,11 +76,12 @@ class Initialize extends AbstractLifecycleHandler {
|
|||
|
||||
def showMW = {e ->
|
||||
def mainFrame = application.getWindowManager().findWindow("main-frame")
|
||||
if (mainFrame != null)
|
||||
Core core = application.getContext().findWindow("main-frame")
|
||||
if (mainFrame != null) {
|
||||
Core core = application.getContext().get("core")
|
||||
if (core != null)
|
||||
mainFrame.setVisible(true)
|
||||
}
|
||||
}
|
||||
|
||||
def show = new MenuItem("Open MuWire")
|
||||
show.addActionListener(showMW)
|
||||
|
|
Loading…
Reference in New Issue