From 6b5fb2063f316e7eaf169d7c12c595ae7fbbcc2b Mon Sep 17 00:00:00 2001 From: t895 Date: Sun, 10 Dec 2023 20:12:05 -0500 Subject: frontend_common: Fix settings reload bug This clears the touch_from_button_maps array before we read new data into it because this read duplicate data on a reload otherwise. --- src/frontend_common/config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 1a0491c2c..d9f99148b 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp @@ -214,6 +214,7 @@ void Config::ReadControlValues() { } void Config::ReadMotionTouchValues() { + Settings::values.touch_from_button_maps.clear(); int num_touch_from_button_maps = BeginArray(std::string("touch_from_button_maps")); if (num_touch_from_button_maps > 0) { -- cgit v1.2.3