mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Compare commits
No commits in common. "c7ea8f34d0a37aceba46c476d0909ceec545af41" and "8ddd2b15773a205f40f2604ce9db42bb2fe7e735" have entirely different histories.
c7ea8f34d0
...
8ddd2b1577
@ -39,17 +39,6 @@ class QueueViewController: NSViewController {
|
|||||||
App.store.unsubscribe(self)
|
App.store.unsubscribe(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
override func keyDown(with event: NSEvent) {
|
|
||||||
switch event.keyCode {
|
|
||||||
case NSEvent.keyCodeBS:
|
|
||||||
let queuePos = queueView.selectedRow
|
|
||||||
|
|
||||||
App.mpdClient.removeSong(at: queuePos)
|
|
||||||
default:
|
|
||||||
nextResponder?.keyDown(with: event)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@objc func didConnect() {
|
@objc func didConnect() {
|
||||||
App.mpdClient.fetchQueue()
|
App.mpdClient.fetchQueue()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2067,7 +2067,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Shared/libmpdclient/output",
|
"$(PROJECT_DIR)/Shared/libmpdclient/output",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = "0.17.1-alpha";
|
MARKETING_VERSION = "0.17.0-alpha";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone;
|
PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@ -2100,7 +2100,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Shared/libmpdclient/output",
|
"$(PROJECT_DIR)/Shared/libmpdclient/output",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = "0.17.1-alpha";
|
MARKETING_VERSION = "0.17.0-alpha";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone;
|
PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
|||||||
@ -51,12 +51,6 @@ func playerReducer(action: Action, state: PlayerState?) -> PlayerState {
|
|||||||
case let action as UpdateElapsedTimeAction:
|
case let action as UpdateElapsedTimeAction:
|
||||||
state.elapsedTimeMs = action.elapsedTimeMs
|
state.elapsedTimeMs = action.elapsedTimeMs
|
||||||
|
|
||||||
if let elapsedTimeMs = state.elapsedTimeMs,
|
|
||||||
let totalTime = state.totalTime,
|
|
||||||
elapsedTimeMs / 1000 > totalTime {
|
|
||||||
App.mpdClient.enqueueCommand(command: .fetchStatus)
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user