Skip to content

Commit cb619d3

Browse files
authored
Merge pull request #5 from gek0z/fix/settings-quit-button
Add Quit button to Settings
2 parents 53d8fd8 + cbe02df commit cb619d3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Sources/Views/SettingsView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ struct SettingsView: View {
101101
.foregroundStyle(.secondary)
102102
}
103103
}
104+
105+
Section {
106+
Button("Quit YouMenuTube", role: .destructive) {
107+
NSApplication.shared.terminate(nil)
108+
}
109+
}
104110
}
105111
.formStyle(.grouped)
106112
.task(id: yt.isSignedIn) {

0 commit comments

Comments
 (0)