Mac OSX Launcher: UI code updates, integration of firefox manager.

This commit is contained in:
meeh
2019-01-18 16:29:12 +00:00
parent 52125917b4
commit 605f9872cd
3 changed files with 58 additions and 2 deletions

View File

@ -108,6 +108,14 @@ import Cocoa
RouterManager.shared().eventManager.listenTo(eventName: "toggle_popover", action: event_toggle)
FirefoxManager.shared().tryAutoDetect()
print("Is Firefox found? \(FirefoxManager.shared().IsFirefoxFound())")
print("Is Firefox profile extracted at \(Preferences.shared()["I2Pref_firefoxProfilePath"] as! String)? \(FirefoxManager.shared().IsProfileExtracted())")
if (!FirefoxManager.shared().IsProfileExtracted()) {
FirefoxManager.shared().unzipProfile()
}
if let button = statusItem.button {
button.image = NSImage(named:"StatusBarButtonImage")
button.toolTip = "I2P Launch Manager"