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 {
3198 let _span = tracy_client::span!("Niri::refresh_on_demand_vrr");3198 let _span = tracy_client::span!("Niri::refresh_on_demand_vrr");
3199 3199
3200 let name = output.user_data().get::<OutputName>().unwrap();3200 let name = output.user_data().get::<OutputName>().unwrap();
3201- let Some(on_demand) = self3201+ let on_demand = self
3202 .config3202 .config
3203 .borrow()3203 .borrow()
3204 .outputs3204 .outputs
3205 .find(name)3205 .find(name)
3206- .map(|output| output.is_vrr_on_demand())3206+ .map_or(false, |output| output.is_vrr_on_demand());
3207- else {
3208- warn!("error getting output config for {}", output.name());
3209- return;
3210- };
3211 if !on_demand {3207 if !on_demand {
3212 return;3208 return;
3213 }3209 }