-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS 14.4.1: Settings no longer orders front when activated #11
Comments
Might be a SwiftUI bug, or a change in behavior (hopefully not though). Does your app run as a dockless menubar app? You may need to call The demo app does it this way using the custom SettingsAccess/Demo/Demo/DemoApp.swift Lines 37 to 44 in e1083e6
|
Thank you so much!! This code now works for me: SettingsLink {
Text("Settings")
} preAction: {
NSApp.activate(ignoringOtherApps: true)
} postAction: {
for window in NSApplication.shared.windows {
if window.level == NSWindow.Level.popUpMenu {
window.close()
break
}
}
} (For some reason, I was using the I think the culprit was: But, problem solved!! The settings window now comes to front, and I don't have to hide all my other windows to get back to it. Man, keeping up with all these frameworks' quirks on different platforms is really something else. |
I assume you're using a window-based |
Bug Description, Steps to Reproduce, Crash Logs, Screenshots, etc.
Thanks for the great package! I'm using this in my MagicMac app (https://github.com/dra11y/MagicMac) that I use (depend on) daily for accessibility as a developer on my Mac, because well, Apple's speech on demand, invert colors, and other "accessibility" features for low vision users have evolved little since OS X 1.0. I often need to bring the Settings to the front to edit my custom speech text replacements.
Unfortunately, it appears Apple broke (what else is new?) ordering the window to the front, as I just updated to 14.4.1 last night and now, when I click on Settings in my Menu Extra, it appears nothing happens but the Settings window pops up behind everything else. This is really, really annoying. I tried deleting my Caches and $TMPDIR folders and rebooting. I tried rebuilding (Xcode 15.3), which partially fixes it (sometimes comes to the front, but not with VSCode or Chrome active, for example).
Is there any way you could check this out and see if it's possible to force-order-front the Settings window?
The text was updated successfully, but these errors were encountered: