Correct resetting some touch control parameters.

Fixes #20993
This commit is contained in:
Henrik Rydgård committed 2025-11-22 16:41:12 +01:00
1 parent 759d8498ca
commit e172cc1060
3 files changed
+6 -8

No files matched your search

+3 -2
View File
@@ -873,8 +873,9 @@ void TouchControlConfig::ResetLayout() {
}
bool TouchControlConfig::ResetToDefault(std::string_view blockName) {
// We do this traditionally for now.
return false;
static const TouchControlConfig defaults = TouchControlConfig();
*this = defaults;
return true;
}
static const ConfigSetting touchControlSettings[] = {