Skip to content

Commit

Permalink
chore: clippy fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Stemmer <enrico@h3rmt.zip>
  • Loading branch information
H3rmt committed Oct 28, 2024
1 parent 9cf8c1a commit 96bb0a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon/gui/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub(super) fn update(
while let Some(child) = workspaces_flow.first_child() {
workspaces_flow.remove(&child);
// get parent(Overlay) -> parent(ApplicationWindow)
workspaces_overlay.parent().map(|p| p.remove_css_class("monitor_active"));
if let Some(p) = workspaces_overlay.parent() { p.remove_css_class("monitor_active") }
}
// get monitor data by connector
let (monitor_id, monitor_data) = data.data.monitors.iter().find(|(_, v)| v.connector == connector)
Expand All @@ -49,7 +49,7 @@ pub(super) fn update(
if let Active::Monitor(mid) = &data.active {
if mid == monitor_id {
// get parent(Overlay) -> parent(ApplicationWindow)
workspaces_overlay.parent().map(|p| p.add_css_class("monitor_active"));
if let Some(p) = workspaces_overlay.parent() { p.add_css_class("monitor_active") }
}

if monitor_data.active {
Expand Down

0 comments on commit 96bb0a5

Please sign in to comment.