Skip to content

Commit b944f7a

Browse files
committed
Add floating to Preferences and Changelog windows
1 parent 54d8c7a commit b944f7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MeetingBar/AppDelegate.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
257257
let controller = NSWindowController(window: onboardingWindow)
258258
controller.showWindow(self)
259259

260-
onboardingWindow.level = NSWindow.Level.floating
260+
onboardingWindow.level = .floating
261261
onboardingWindow.center()
262262
onboardingWindow.orderFrontRegardless()
263263
}
@@ -272,6 +272,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
272272
defer: false
273273
)
274274
changelogWindow.title = WindowTitles.changelog
275+
changelogWindow.level = .floating
275276
changelogWindow.contentView = NSHostingView(rootView: contentView)
276277
changelogWindow.makeKeyAndOrderFront(nil)
277278
// allow the changelof window can be focused automatically when opened
@@ -304,6 +305,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
304305
window.title = WindowTitles.preferences
305306
window.contentView = NSHostingView(rootView: contentView)
306307
window.makeKeyAndOrderFront(nil)
308+
window.level = .floating
307309
// allow the preference window can be focused automatically when opened
308310
NSApplication.shared.activate(ignoringOtherApps: true)
309311

0 commit comments

Comments
 (0)