Skip to content

Commit

Permalink
Add RightClickMenuView
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Nov 17, 2024
1 parent 98854a9 commit b1d0320
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Pulse/PulseApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import SwiftUI
@main
struct PulseApp: App {
var body: some Scene {
WindowGroup {
ContentView()
MenuBarExtra {
RightClickMenuView()
} label: {
// TODO:

Check warning on line 9 in Pulse/PulseApp.swift

View workflow job for this annotation

GitHub Actions / Lint

Todo Violation: TODOs should be resolved (todo)
Image(systemName: "leaf")
}
}
}
9 changes: 9 additions & 0 deletions Pulse/RightClickMenuView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import SwiftUI

struct RightClickMenuView: View {
var body: some View {
Button("Quit") {
NSApplication.shared.terminate(self)
}
}
}

0 comments on commit b1d0320

Please sign in to comment.