소스 검색

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.
t895 2 년 전
부모
커밋
6b5fb2063f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/frontend_common/config.cpp

+ 1 - 0
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) {