From ed10ac191df473c92c4fec495aafa7f569d108c8 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 16 Sep 2024 20:56:23 +0200 Subject: Add some debouncing --- Map/Presentation/Commands/MapCommands.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Map/Presentation/Commands/MapCommands.swift') 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) -- cgit