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() {
10301030 if (power_user.movingUIState) {
10311031 loadMovingUIState();
10321032 }
1033+ } else {
1034+ if (Object.keys(power_user.movingUIState).length !== 0) {
1035+ power_user.movingUIState = {};
1036+ resetMovablePanels();
1037+ saveSettingsDebounced();
1038+ }
10331039 }
10341040}
10351041