fix: treat a missing discrete GPU setting as on (#884)

This commit is contained in:
LynithDev 2026-09-28 17:22:13 +02:00 • committed by GitHub
parent 7ca7ac04cf
commit 8e66212596
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ fn discrete_gpu_row(
dispatch: crate::Actions,
) -> impl IntoElement {
let current = os_extra.unwrap_or_default();
let on = current.use_discrete_gpu.unwrap_or(false);
let on = current.use_discrete_gpu.unwrap_or(true);
let on_toggle: EventHandler<()> = (move |()| {
dispatch.update_global_profile(ProfileUpdate {

View file

@ -73,7 +73,7 @@ impl GameSettingsProfile {
.os_extra
.as_ref()
.and_then(|extra| extra.use_discrete_gpu)
.unwrap_or(false),
.unwrap_or(true),
_ => false
}
}