Преглед на файлове

Use new toggleExplorer convenience method in keyboard shortcut

Ryan Olson преди 10 години
родител
ревизия
e9e084e6f1
променени са 1 файла, в които са добавени 1 реда и са изтрити 5 реда
  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:^{