ソースを参照

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:^{