Skip to content

Commit

Permalink
Remove warning about missing output config
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Sep 3, 2024
1 parent 7645888 commit 495eb06
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/niri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3198,16 +3198,12 @@ impl Niri {
let _span = tracy_client::span!("Niri::refresh_on_demand_vrr");

let name = output.user_data().get::<OutputName>().unwrap();
let Some(on_demand) = self
let on_demand = self
.config
.borrow()
.outputs
.find(name)
.map(|output| output.is_vrr_on_demand())
else {
warn!("error getting output config for {}", output.name());
return;
};
.map_or(false, |output| output.is_vrr_on_demand());
if !on_demand {
return;
}
Expand Down

0 comments on commit 495eb06

Please sign in to comment.