Skip to content

Commit 978d67b

Browse files
committed
mac: put new UI behind a setting flag
1 parent 8905c21 commit 978d67b

File tree

8 files changed

+694
-159
lines changed

8 files changed

+694
-159
lines changed

apple/InlineMac/App/AppDelegate.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UserNotifications
1010

1111
class AppDelegate: NSObject, NSApplicationDelegate {
1212
// Main Window
13-
private var mainWindowController: MainWindowController?
13+
private var mainWindowController: NSWindowController?
1414

1515
@MainActor private let dockBadgeService = DockBadgeService()
1616

@@ -112,7 +112,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
112112
}
113113

114114
// Create new window controller if it doesn't exist
115-
let controller = MainWindowController(dependencies: dependencies)
115+
let controller: NSWindowController
116+
if AppSettings.shared.enableNewMacUI {
117+
controller = MainWindowController(dependencies: dependencies)
118+
} else {
119+
controller = LegacyMainWindowController(dependencies: dependencies)
120+
}
116121
controller.showWindow(nil)
117122
mainWindowController = controller
118123
}

0 commit comments

Comments
 (0)