Compare commits

..

1 Commits

Author SHA1 Message Date
Shadowfacts 1946c00065
Add the app 2021-08-31 23:23:29 -04:00
1 changed files with 8 additions and 0 deletions

View File

@ -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