Parcourir la source

Use new toggleExplorer convenience method in keyboard shortcut

Ryan Olson il y a 10 ans
Parent
commit
e9e084e6f1
1 fichiers modifiés avec 1 ajouts et 5 suppressions
  1. 1 5
      Classes/ExplorerToolbar/FLEXManager.m

+ 1 - 5
Classes/ExplorerToolbar/FLEXManager.m

@@ -165,11 +165,7 @@
 - (void)registerDefaultSimulatorShortcuts
 {
     [self registerSimulatorShortcutWithKey:@"f" modifiers:0 action:^{
-        if ([self isHidden]) {
-            [self showExplorer];
-        } else {
-            [self hideExplorer];
-        }
+        [self toggleExplorer];
     } description:@"Toggle FLEX toolbar"];
     
     [self registerSimulatorShortcutWithKey:@"g" modifiers:0 action:^{