mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
added safety feature: reset MUI panel settings when toggling MUI off
This commit is contained in:
@ -1030,6 +1030,12 @@ function switchMovingUI() {
|
|||||||
if (power_user.movingUIState) {
|
if (power_user.movingUIState) {
|
||||||
loadMovingUIState();
|
loadMovingUIState();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (Object.keys(power_user.movingUIState).length !== 0) {
|
||||||
|
power_user.movingUIState = {};
|
||||||
|
resetMovablePanels();
|
||||||
|
saveSettingsDebounced();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user