diff --git a/dock shortcut.xcodeproj/project.pbxproj b/dock shortcut.xcodeproj/project.pbxproj index 68f478b..d539987 100644 --- a/dock shortcut.xcodeproj/project.pbxproj +++ b/dock shortcut.xcodeproj/project.pbxproj @@ -365,7 +365,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.0; - MARKETING_VERSION = 1.2; + MARKETING_VERSION = 1.3; PRODUCT_BUNDLE_IDENTIFIER = "com.yige.dock-shortcut"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; @@ -400,7 +400,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.0; - MARKETING_VERSION = 1.2; + MARKETING_VERSION = 1.3; PRODUCT_BUNDLE_IDENTIFIER = "com.yige.dock-shortcut"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/dock shortcut.xcodeproj/project.xcworkspace/xcuserdata/yige.xcuserdatad/UserInterfaceState.xcuserstate b/dock shortcut.xcodeproj/project.xcworkspace/xcuserdata/yige.xcuserdatad/UserInterfaceState.xcuserstate index 2cd69b7..625b268 100644 Binary files a/dock shortcut.xcodeproj/project.xcworkspace/xcuserdata/yige.xcuserdatad/UserInterfaceState.xcuserstate and b/dock shortcut.xcodeproj/project.xcworkspace/xcuserdata/yige.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/dock shortcut/AppDelegate.swift b/dock shortcut/AppDelegate.swift index 922831f..f3196ff 100644 --- a/dock shortcut/AppDelegate.swift +++ b/dock shortcut/AppDelegate.swift @@ -148,13 +148,13 @@ class AppDelegate: NSObject, NSApplicationDelegate { withLength: NSStatusItem.squareLength) if let showMenuBarIcon = UserDefaults.standard.string(forKey: "preference_showMenuBarIcon") { - if window != nil && showMenuBarIcon == "1" { - window?.close() // Close main app window - } - if showMenuBarIcon == "0" { statusBarItem.isVisible = false } + + if window != nil { + window?.close() // Close main app window + } } else if window != nil { window?.close() // Close main app window } diff --git a/dock-shortcut-Info.plist b/dock-shortcut-Info.plist index ab8fade..e9b47f9 100644 --- a/dock-shortcut-Info.plist +++ b/dock-shortcut-Info.plist @@ -3,7 +3,7 @@ CFBundleShortVersionString - 1.2 + 1.3 NSSupportsAutomaticTermination UIApplicationExitsOnSuspend