Compare commits
1 Commits
c4991a6671
...
1946c00065
Author | SHA1 | Date |
---|---|---|
Shadowfacts | 1946c00065 |
|
@ -30,6 +30,14 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
// update the icon when system prefs changes
|
||||
DistributedNotificationCenter.default().addObserver(self, selector: #selector(updateIcon), name: .swipeScrollDirectionDidChangeNotification, object: nil)
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ aNotification: Notification) {
|
||||
// Insert code here to tear down your application
|
||||
}
|
||||
|
||||
func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
@objc private func updateIcon() {
|
||||
item.button!.image = Direction.current.image
|
||||
|
|
Loading…
Reference in New Issue