added safety feature: reset MUI panel settings when toggling MUI off

c13ca77bd951137c7c494d6f3a045892f0fa8633

RossAscends <124905043+RossAscends@users.noreply.github.com>

1 files changed, +6 -0Showing whitespace changes
public/scripts/power-user.js+6 -0
@@ -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}
10351041