Skip to content

Commit

Permalink
Add quit button
Browse files Browse the repository at this point in the history
  • Loading branch information
denizt committed Mar 31, 2022
1 parent 8a80fa3 commit d934e88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions TomatoBar/TomatoBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ public struct TomatoBarView: View {
timer.toggleTickingAction()
}
}
Button {
NSApplication.shared.terminate(self)
} label: {
Text("Quit")
.frame(maxWidth: .infinity)
}
.controlSize(.large)
.padding(.bottom, 4)
}
.padding(12)
}
Expand Down

0 comments on commit d934e88

Please sign in to comment.