Skip to content

Commit

Permalink
Merge pull request #17 from Yoshi2889/fix/popover
Browse files Browse the repository at this point in the history
Change popover into simple tooltip to prevent focus stealing
  • Loading branch information
NanoSector authored Mar 22, 2021
2 parents 57fee99 + 4070b7f commit 071c02b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Brewed/View/ServiceRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ struct ServiceRow: View {
@State private var showingPopover = false
@State private var executingCommand = false

@State private var showingStartHelpPopover = false

var body: some View {
HStack {
Button(action: { showingPopover = true }) {
Expand Down Expand Up @@ -61,11 +59,7 @@ struct ServiceRow: View {
Button(action: start) {
Image(systemName: "play.fill")
Text("Start")
}.onHover { hovering in
showingStartHelpPopover = hovering
}.popover(isPresented: $showingStartHelpPopover, arrowEdge: .bottom) {
Text("This will run the service now and when logging in as the current user.").padding()
}
}.help("This will run the service now and when logging in as the current user.")
}

if service.status == .started {
Expand Down

0 comments on commit 071c02b

Please sign in to comment.