Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
Do not change status bar icon when proxy servers are stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuhaow committed Dec 13, 2016
1 parent 1860d3f commit bfe0132
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.9.0.beta3

### Changed
- Do not change status bar icon when proxy servers are stopped.

## 0.9.0.beta2

### Fixed
Expand Down
5 changes: 1 addition & 4 deletions SpechtLite/ViewController/MenuBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,14 @@ class MenuBarController: NSObject, NSMenuDelegate {

override init() {
let icon = NSImage(named: "StatusIcon")!
icon.isTemplate = true
barItem = NSStatusBar.system().statusItem(withLength: -1)
barItem.image = icon
barItem.menu = NSMenu()

super.init()

barItem.menu!.delegate = self

ProfileManager.currentProfile.producer.map { $0 != nil }.startWithValues { [weak self] in
self?.barItem.image?.isTemplate = $0
}
}

func menuNeedsUpdate(_ menu: NSMenu) {
Expand Down

0 comments on commit bfe0132

Please sign in to comment.