Skip to content

Commit c9b4d2b

Browse files
authored
Merge pull request #245 from VODGroup/221-file-open-recent-show-nothing
A very strange fix
2 parents efeec05 + 4bbcafe commit c9b4d2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VoiceOver Designer/AppDelegate.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
1616

1717
func applicationDidFinishLaunching(_ aNotification: Notification) {
1818
windowManager.start()
19-
NSApplication.shared.mainMenu = MainMenu.menu()
2019

2120
#if DEBUG
2221
openFileForUITestIfNeeded()
@@ -56,7 +55,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
5655
let image = NSImage(byReferencing: url)
5756
document = VODesignDocument(image: image)
5857
}
59-
6058
windowManager.createNewDocumentWindow(document: document)
6159
}
6260

VoiceOver Designer/main.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import AppKit
33
// 1
44
let app = NSApplication.shared
55
let delegate = AppDelegate()
6+
let menu = MainMenu.menu()
67
app.delegate = delegate
8+
app.mainMenu = menu
79

810
// 2
911
_ = NSApplicationMain(CommandLine.argc, CommandLine.unsafeArgv)

0 commit comments

Comments
 (0)