mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-18 04:37:57 +01:00
Fix exception throw (#28104)
* fix exception throw * fix settings crash * throw runtime_error
This commit is contained in:
committed by
GitHub
parent
83143169c6
commit
738072f508
@@ -342,7 +342,7 @@ private:
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Press Time Windows Shortcuts value");
|
||||
}
|
||||
value = static_cast<int>(jsonPressTimeForTaskbarIconShortcutsObject.GetNamedNumber(L"value"));
|
||||
if (value >= 0)
|
||||
@@ -351,7 +351,7 @@ private:
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
throw std::runtime_error("Invalid Press Time Taskbar Shortcuts value");
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
|
||||
Reference in New Issue
Block a user