mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
Remove warning about missing output config
This commit is contained in:
+2
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user