mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
added safety feature: reset MUI panel settings when toggling MUI off
This commit is contained in:
parent
d1c3798d76
commit
c13ca77bd9
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user