This commit is contained in:
psykose 2024-11-16 12:51:30 +01:00
parent 2362ca4e7a
commit 729b9ac5f7
Signed by: psykose
SSH key fingerprint: SHA256:pRMVjV3kRB6zl+wNx+sV8KoMnPqQAW6v8dNCxsCGZv8

View file

@ -448,10 +448,7 @@ mod imp {
} }
fn idle_active(&self) -> bool { fn idle_active(&self) -> bool {
match self.state.get() { matches!(self.state.get(), State::Idle)
State::Idle => true,
_ => false,
}
} }
fn playlist_count(&self) -> i64 { fn playlist_count(&self) -> i64 {
@ -714,7 +711,7 @@ mod imp {
{ {
css.push_str(&format!("--background-color-{i}: {color}; ")); css.push_str(&format!("--background-color-{i}: {color}; "));
} }
css.push_str("}"); css.push('}');
window.imp().css_provider.load_from_string(&css); window.imp().css_provider.load_from_string(&css);
} }