fxi menu
This commit is contained in:
parent
b0172444c6
commit
5fe503b53c
@ -49,6 +49,7 @@ struct MainMenuBar: View {
|
|||||||
|
|
||||||
Button("打开控制面板") {
|
Button("打开控制面板") {
|
||||||
openWindow(id: "main")
|
openWindow(id: "main")
|
||||||
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsLink {
|
SettingsLink {
|
||||||
@ -57,12 +58,11 @@ struct MainMenuBar: View {
|
|||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
|
|
||||||
Divider()
|
Divider()
|
||||||
|
|
||||||
Button(action: {
|
Button("退出应用") {
|
||||||
NSApplication.shared.terminate(nil)
|
NSApplication.shared.terminate(nil)
|
||||||
}, label: {
|
}
|
||||||
Text("退出应用")
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user