fix: treat a missing discrete GPU setting as on (#884)
This commit is contained in:
parent
7ca7ac04cf
commit
8e66212596
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ impl GameSettingsProfile {
|
|||
.os_extra
|
||||
.as_ref()
|
||||
.and_then(|extra| extra.use_discrete_gpu)
|
||||
.unwrap_or(false),
|
||||
.unwrap_or(true),
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue