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

This commit is contained in:
RossAscends 2024-08-04 21:39:24 +09:00
parent d1c3798d76
commit c13ca77bd9

View File

@ -1030,6 +1030,12 @@ function switchMovingUI() {
if (power_user.movingUIState) {
loadMovingUIState();
}
} else {
if (Object.keys(power_user.movingUIState).length !== 0) {
power_user.movingUIState = {};
resetMovablePanels();
saveSettingsDebounced();
}
}
}