Skip to content

Commit

Permalink
0.17.7: fix kernel panics...
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiayang committed Mar 7, 2022
1 parent e9ff240 commit 399fcba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MoeStreamer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 0.17.6;
MARKETING_VERSION = 0.17.7;
PRODUCT_BUNDLE_IDENTIFIER = com.zhiayang.MoeStreamer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "";
Expand Down Expand Up @@ -700,7 +700,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 0.17.6;
MARKETING_VERSION = 0.17.7;
PRODUCT_BUNDLE_IDENTIFIER = com.zhiayang.MoeStreamer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "";
Expand Down
7 changes: 4 additions & 3 deletions MoeStreamer/src/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@ class AppDelegate : NSObject, NSApplicationDelegate
globalMediaKeyHandler.enable(Settings.get(.shouldUseMediaKeys()),
musicCon: self.controller.getModel().controller())

/*
// register the sleep handler, so we pause on sleep.
NSWorkspace.shared.notificationCenter.addObserver(self, selector: #selector(AppDelegate.onSleep),
name: NSWorkspace.willSleepNotification, object: nil)

NSWorkspace.shared.notificationCenter.addObserver(self, selector: #selector(AppDelegate.onWake),
name: NSWorkspace.didWakeNotification, object: nil)

*/
DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) {
self.controller.showPopover()
}
}

/*
@objc func onSleep()
{
Logger.log(msg: "pausing playback due to sleep")
Expand All @@ -58,7 +59,7 @@ class AppDelegate : NSObject, NSApplicationDelegate
self.controller.getModel().poke()
}
}

*/
func applicationWillTerminate(_ aNotification: Notification)
{
globalMediaKeyHandler.enable(false, musicCon: self.controller.getModel().controller())
Expand Down

0 comments on commit 399fcba

Please sign in to comment.