mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Compare commits
3 Commits
8ddd2b1577
...
c7ea8f34d0
| Author | SHA1 | Date | |
|---|---|---|---|
| c7ea8f34d0 | |||
| 22b3ca2aff | |||
| 0ac67119b7 |
@ -39,6 +39,17 @@ class QueueViewController: NSViewController {
|
||||
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() {
|
||||
App.mpdClient.fetchQueue()
|
||||
}
|
||||
|
||||
@ -2067,7 +2067,7 @@
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Shared/libmpdclient/output",
|
||||
);
|
||||
MARKETING_VERSION = "0.17.0-alpha";
|
||||
MARKETING_VERSION = "0.17.1-alpha";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
@ -2100,7 +2100,7 @@
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Shared/libmpdclient/output",
|
||||
);
|
||||
MARKETING_VERSION = "0.17.0-alpha";
|
||||
MARKETING_VERSION = "0.17.1-alpha";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
||||
@ -51,6 +51,12 @@ func playerReducer(action: Action, state: PlayerState?) -> PlayerState {
|
||||
case let action as UpdateElapsedTimeAction:
|
||||
state.elapsedTimeMs = action.elapsedTimeMs
|
||||
|
||||
if let elapsedTimeMs = state.elapsedTimeMs,
|
||||
let totalTime = state.totalTime,
|
||||
elapsedTimeMs / 1000 > totalTime {
|
||||
App.mpdClient.enqueueCommand(command: .fetchStatus)
|
||||
}
|
||||
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user