mirror of
https://github.com/pawelorzech/FastMemos.git
synced 2026-01-29 19:54:29 +00:00
feat: Add "Quit App" button to the menu bar.
This commit is contained in:
parent
9ea4974123
commit
1f2a4bab1c
1 changed files with 7 additions and 0 deletions
|
|
@ -127,6 +127,13 @@ struct MenuBarView: View {
|
||||||
.font(.caption2)
|
.font(.caption2)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
|
Button(action: { NSApplication.shared.terminate(nil) }) {
|
||||||
|
Text("Quit App")
|
||||||
|
.font(.caption2)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
|
}
|
||||||
|
.buttonStyle(.plain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue