forge
Explore
Log in

Don't you dare go Hollow

Remove warning about missing output config

Browse files at this commit

b65a243fc92285efdc561bc68b5f46184240882aIvan MolodetskikhParent: f0157e0
src/niri.rsmodified+2 -6
@@ -3198,16 +3198,12 @@ impl Niri {
31983198 let _span = tracy_client::span!("Niri::refresh_on_demand_vrr");
31993199
32003200 let name = output.user_data().get::<OutputName>().unwrap();
3201- let Some(on_demand) = self
3201+ let on_demand = self
32023202 .config
32033203 .borrow()
32043204 .outputs
32053205 .find(name)
3206- .map(|output| output.is_vrr_on_demand())
3207- else {
3208- warn!("error getting output config for {}", output.name());
3209- return;
3210- };
3206+ .map_or(false, |output| output.is_vrr_on_demand());
32113207 if !on_demand {
32123208 return;
32133209 }