diff --git a/Cargo.lock b/Cargo.lock index 6584dd2..1b2cdd5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2386,7 +2386,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "switcheroo-control" version = "0.1.0" -source = "git+https://github.com/pop-os/dbus-settings-bindings#3b86984332be2c930a3536ab714b843c851fa8ca" +source = "git+https://github.com/pop-os/dbus-settings-bindings#0fa672f8dadb884001ef9a251b149ed432879629" dependencies = [ "zbus", ] diff --git a/plugins/src/desktop_entries/mod.rs b/plugins/src/desktop_entries/mod.rs index 4d9ee24..466b5ec 100644 --- a/plugins/src/desktop_entries/mod.rs +++ b/plugins/src/desktop_entries/mod.rs @@ -299,7 +299,7 @@ impl App { if let Some(gpus) = self.gpus.as_ref() { let default_idx = if entry.prefers_non_default_gpu() { - gpus.iter().position(|gpu| !gpu.default).unwrap_or(0) + gpus.iter().position(|gpu| gpu.discrete).unwrap_or(0) } else { gpus.iter().position(|gpu| gpu.default).unwrap_or(0) };