From 19b29aa6344089d72860fc8e52a4c2a5c0e2187d Mon Sep 17 00:00:00 2001 From: tiou Date: Tue, 20 Sep 2022 15:41:37 +0800 Subject: [PATCH] fix: hide statusItem label --- Hopscotch.xcodeproj/project.pbxproj | 8 ++++---- Hopscotch/AppDelegate.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Hopscotch.xcodeproj/project.pbxproj b/Hopscotch.xcodeproj/project.pbxproj index 135c05e..7f00ed2 100644 --- a/Hopscotch.xcodeproj/project.pbxproj +++ b/Hopscotch.xcodeproj/project.pbxproj @@ -545,7 +545,7 @@ CODE_SIGN_IDENTITY = "-"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 3; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_ASSET_PATHS = "\"Hopscotch/Preview Content\""; DEVELOPMENT_TEAM = Q9JRKL6X9R; ENABLE_HARDENED_RUNTIME = YES; @@ -556,7 +556,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.0; - MARKETING_VERSION = 0.1.3; + MARKETING_VERSION = 0.1.4; PRODUCT_BUNDLE_IDENTIFIER = info.dourok.osx.jumper; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -572,7 +572,7 @@ CODE_SIGN_IDENTITY = "-"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 3; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_ASSET_PATHS = "\"Hopscotch/Preview Content\""; DEVELOPMENT_TEAM = Q9JRKL6X9R; ENABLE_HARDENED_RUNTIME = YES; @@ -583,7 +583,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.0; - MARKETING_VERSION = 0.1.3; + MARKETING_VERSION = 0.1.4; PRODUCT_BUNDLE_IDENTIFIER = info.dourok.osx.jumper; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/Hopscotch/AppDelegate.swift b/Hopscotch/AppDelegate.swift index 9d926ad..3ccbf5f 100644 --- a/Hopscotch/AppDelegate.swift +++ b/Hopscotch/AppDelegate.swift @@ -36,7 +36,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { //clearData() ShortcutRepository.shared.register() statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength) - statusItem?.button?.title = Bundle.main.infoDictionary![kCFBundleNameKey as String] as! String + // statusItem?.button?.title = Bundle.main.infoDictionary![kCFBundleNameKey as String] as! String statusItem?.button?.image = NSImage.init(named: "ic_status_bar") if let menu = menu { statusItem?.menu = menu