Remove warning about missing output config
Browse files at this commitb65a243fc92285efdc561bc68b5f46184240882aParent: f0157e01 changed file +2 -6
- src/niri.rs +2 -6
src/niri.rsmodified+2 -6
| @@ -3198,16 +3198,12 @@ impl Niri { | ||
| 3198 | 3198 | let _span = tracy_client::span!("Niri::refresh_on_demand_vrr"); |
| 3199 | 3199 | |
| 3200 | 3200 | let name = output.user_data().get::<OutputName>().unwrap(); |
| 3201 | - let Some(on_demand) = self | |
| 3201 | + let on_demand = self | |
| 3202 | 3202 | .config |
| 3203 | 3203 | .borrow() |
| 3204 | 3204 | .outputs |
| 3205 | 3205 | .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()); | |
| 3211 | 3207 | if !on_demand { |
| 3212 | 3208 | return; |
| 3213 | 3209 | } |