We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a9870 commit f1140f9Copy full SHA for f1140f9
src/main.rs
@@ -45,11 +45,10 @@ impl DBusInterface for DBusRunner {
45
msg.read3::<String, HashMap<_, _>, Vec<String>>().unwrap().1;
46
if let Some(playback_status) = items.get("PlaybackStatus") {
47
if let Some(status) = playback_status.0.as_str() {
48
- if status == "Paused" {
49
- good_to_send.store(false, std::sync::atomic::Ordering::SeqCst);
50
- }
51
if status == "Playing" {
52
good_to_send.store(true, std::sync::atomic::Ordering::SeqCst);
+ } else {
+ good_to_send.store(false, std::sync::atomic::Ordering::SeqCst);
53
}
54
55
0 commit comments