Skip to content

Commit

Permalink
fix: apply workaround below macOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
phlpsong committed Feb 3, 2024
1 parent 6117800 commit 2d19b2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Easydict/NewApp/View/MenuItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@ struct MenuItemView: View {
SettingsLink {
Text("Settings...")
} preAction: {
NSLog("打开设置")
NSApp.activate(ignoringOtherApps: true)
} postAction: {
// nothing to do
}
} else {
Button("Settings...") {
NSLog("打开设置")
NSApp.activate(ignoringOtherApps: true)
NSApplication.shared.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)
}
}
Expand Down

0 comments on commit 2d19b2c

Please sign in to comment.