|
// "Default" (b) |
|
dict.insert("Default", OwnedValue::from(gpu.device.is_default())); |
|
// "Discrete" (b) |
|
dict.insert("Discrete", OwnedValue::from(!gpu.device.is_default())); |
The Discrete key is incorrectly populated with !default instead of properly checking if a given device is discrete or not.
cardwire/crates/cardwire-daemon/src/interface/switcheroo.rs
Lines 56 to 59 in 23dd0ac
The Discrete key is incorrectly populated with
!defaultinstead of properly checking if a given device is discrete or not.