aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Commands/MapCommands.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2024-09-16 20:56:23 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2024-09-16 20:56:23 +0200
commited10ac191df473c92c4fec495aafa7f569d108c8 (patch)
tree5655074ca26c51fe001df91859649aa6599993d5 /Map/Presentation/Commands/MapCommands.swift
parent9703ef690a21067a1929f3020350e0d5d459f8ef (diff)
Add some debouncing
Diffstat (limited to 'Map/Presentation/Commands/MapCommands.swift')
-rw-r--r--Map/Presentation/Commands/MapCommands.swift4
1 files changed, 1 insertions, 3 deletions
diff --git a/Map/Presentation/Commands/MapCommands.swift b/Map/Presentation/Commands/MapCommands.swift
index c04cb73..35250e2 100644
--- a/Map/Presentation/Commands/MapCommands.swift
+++ b/Map/Presentation/Commands/MapCommands.swift
@@ -67,9 +67,7 @@ struct MapCommands: Commands {
CommandGroup(after: CommandGroupPlacement.pasteboard) {
Divider()
Button("Find...") {
- withAnimation {
- isSearching = isSearching != nil ? !isSearching! : true
- }
+ isSearching = isSearching != nil ? !isSearching! : true
}.keyboardShortcut(
"f", modifiers: EventModifiers([.command])
).disabled(document == nil)