]> git.r.bdr.sh - rbdr/map/blobdiff - Map/Presentation/Commands/MapCommands.swift
Add some debouncing
[rbdr/map] / Map / Presentation / Commands / MapCommands.swift
index c04cb73f8c4b703098cd75bbff0a27aab9b4b91e..35250e26b76124009f5b35aa77c80592cfd197b0 100644 (file)
@@ -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)