mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 06:43:49 +00:00
PowerControl: Improve handling of ? settings
This commit is contained in:
parent
02d68af216
commit
d1546d1dc8
4 changed files with 18 additions and 2 deletions
|
|
@ -105,7 +105,15 @@ namespace PowerControl.Menu
|
|||
|
||||
if (ApplyValue != null && SelectedOption != null)
|
||||
{
|
||||
ActiveOption = ApplyValue(SelectedOption);
|
||||
try
|
||||
{
|
||||
ActiveOption = ApplyValue(SelectedOption);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
CommonHelpers.Log.TraceException("FinalizeSet", Name, e);
|
||||
Update();
|
||||
}
|
||||
|
||||
if (AfterApply != null && runAfterApply)
|
||||
AfterApply();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue