diff --git a/MacBox.xcodeproj/project.pbxproj b/MacBox.xcodeproj/project.pbxproj index 031caa9..957bc92 100644 --- a/MacBox.xcodeproj/project.pbxproj +++ b/MacBox.xcodeproj/project.pbxproj @@ -445,7 +445,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; - MARKETING_VERSION = 0.4.5; + MARKETING_VERSION = 0.4.6; PRODUCT_BUNDLE_IDENTIFIER = Moonif.MacBox; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -480,7 +480,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; - MARKETING_VERSION = 0.4.5; + MARKETING_VERSION = 0.4.6; PRODUCT_BUNDLE_IDENTIFIER = Moonif.MacBox; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/MacBox/Storyboards/Base.lproj/Main.storyboard b/MacBox/Storyboards/Base.lproj/Main.storyboard index e69f03c..21ea810 100644 --- a/MacBox/Storyboards/Base.lproj/Main.storyboard +++ b/MacBox/Storyboards/Base.lproj/Main.storyboard @@ -1,7 +1,7 @@ - + - + @@ -83,18 +83,18 @@ - + - + - + @@ -1286,7 +1286,6 @@ - @@ -1523,7 +1522,6 @@ - diff --git a/MacBox/Storyboards/mul.lproj/Main.xcstrings b/MacBox/Storyboards/mul.lproj/Main.xcstrings index 1c30e19..fd271f7 100644 --- a/MacBox/Storyboards/mul.lproj/Main.xcstrings +++ b/MacBox/Storyboards/mul.lproj/Main.xcstrings @@ -6337,6 +6337,18 @@ } } }, + "dku-Fs-jda.toolTip" : { + "comment" : "Class = \"NSToolbarItem\"; toolTip = \"Create or Import a Virtual Machine\"; ObjectID = \"dku-Fs-jda\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Create or Import a Virtual Machine" + } + } + } + }, "dz5-Ik-wZS.title" : { "comment" : "Class = \"NSMenuItem\"; title = \"Search: Home\"; ObjectID = \"dz5-Ik-wZS\";", "extractionState" : "extracted_with_value", @@ -9025,6 +9037,18 @@ } } }, + "iAl-vP-Cp6.toolTip" : { + "comment" : "Class = \"NSToolbarItem\"; toolTip = \"Show Printer Tray for selected Virtual Machine\"; ObjectID = \"iAl-vP-Cp6\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Show Printer Tray for selected Virtual Machine" + } + } + } + }, "Ic1-W7-XQj.ibShadowedToolTip" : { "comment" : "Class = \"NSImageView\"; ibShadowedToolTip = \"RAM\"; ObjectID = \"Ic1-W7-XQj\";", "extractionState" : "extracted_with_value", @@ -18433,6 +18457,18 @@ } } }, + "YpZ-1Y-BHP.toolTip" : { + "comment" : "Class = \"NSToolbarItem\"; toolTip = \"Show Screenshots folder for selected Virtual Machine\"; ObjectID = \"YpZ-1Y-BHP\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Show Screenshots folder for selected Virtual Machine" + } + } + } + }, "Z6c-Qo-Ahd.title" : { "comment" : "Class = \"NSTextFieldCell\"; title = \"Machine\"; ObjectID = \"Z6c-Qo-Ahd\";", "extractionState" : "extracted_with_value", diff --git a/MacBox/ViewControllers/MainViewController.swift b/MacBox/ViewControllers/MainViewController.swift index 8a9e1de..74f7de5 100644 --- a/MacBox/ViewControllers/MainViewController.swift +++ b/MacBox/ViewControllers/MainViewController.swift @@ -1119,6 +1119,11 @@ class MainViewController: NSViewController { if let addVMTabViewVC = self.storyboard?.instantiateController(withIdentifier: "AddVMVC") as? NSTabViewController { self.presentAsModalWindow(addVMTabViewVC) } + + // Deselect the toolbar button after action + if let senderButton = sender as? NSToolbarItem { + senderButton.toolbar?.selectedItemIdentifier = nil + } } // Print tray toolbar button action @@ -1126,6 +1131,11 @@ class MainViewController: NSViewController { if currentVMPrinterPath != nil { NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: String(currentVMPrinterPath ?? "")) } + + // Deselect the toolbar button after action + if let senderButton = sender as? NSToolbarItem { + senderButton.toolbar?.selectedItemIdentifier = nil + } } // Screenshots toolbar button action @@ -1133,6 +1143,11 @@ class MainViewController: NSViewController { if currentVMScreenShotsPath != nil { NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: String(currentVMScreenShotsPath ?? "")) } + + // Deselect the toolbar button after action + if let senderButton = sender as? NSToolbarItem { + senderButton.toolbar?.selectedItemIdentifier = nil + } } // Settings button action