added safety feature: reset MUI panel settings when toggling MUI off
| @@ -1030,6 +1030,12 @@ function switchMovingUI() { | |||
| 1030 | if (power_user.movingUIState) { | 1030 | if (power_user.movingUIState) { |
| 1031 | loadMovingUIState(); | 1031 | loadMovingUIState(); |
| 1032 | } | 1032 | } |
| 1033 | } else { | ||
| 1034 | if (Object.keys(power_user.movingUIState).length !== 0) { | ||
| 1035 | power_user.movingUIState = {}; | ||
| 1036 | resetMovablePanels(); | ||
| 1037 | saveSettingsDebounced(); | ||
| 1038 | } | ||
| 1033 | } | 1039 | } |
| 1034 | } | 1040 | } |
| 1035 | 1041 | ||