window menu: add item to reopen app
In order to support macOS Human Interface Guidelines, list Ring Main
Window or Wizard Window in Window menu, so user could re-open it after
windows was closed.
Change-Id: I4fc200b1230987817466e7c79cf80dfb9e0ea35b
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
diff --git a/src/AppDelegate.mm b/src/AppDelegate.mm
index d221bac..a828e09 100644
--- a/src/AppDelegate.mm
+++ b/src/AppDelegate.mm
@@ -238,6 +238,7 @@
if(self.ringWindowController == nil) {
self.ringWindowController = [[RingWindowController alloc] initWithWindowNibName:@"RingWindow"];
}
+ [[NSApplication sharedApplication] removeWindowsItem:self.wizard.window];
[self.ringWindowController.window makeKeyAndOrderFront:self];
}