Save settings after switching style toggle

61c148a5f0510ccc1cd0080faabae3a5256d1d99

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +10 -10Ignore whitespace
public/scripts/power-user.js+10 -10
@@ -3503,36 +3503,36 @@ $(document).ready(() => {
35033503 $('#messageTimerEnabled').on('input', function () {
35043504 const value = !!$(this).prop('checked');
35053505 power_user.timer_enabled = value;
3506- saveSettingsDebounced();
35073506 switchTimer();
3507+ saveSettingsDebounced();
35083508 });
35093509
35103510 $('#messageTimestampsEnabled').on('input', function () {
35113511 const value = !!$(this).prop('checked');
35123512 power_user.timestamps_enabled = value;
3513- saveSettingsDebounced();
35143513 switchTimestamps();
3514+ saveSettingsDebounced();
35153515 });
35163516
35173517 $('#messageModelIconEnabled').on('input', function () {
35183518 const value = !!$(this).prop('checked');
35193519 power_user.timestamp_model_icon = value;
3520- saveSettingsDebounced();
35213520 switchIcons();
3521+ saveSettingsDebounced();
35223522 });
35233523
35243524 $('#messageTokensEnabled').on('input', function () {
35253525 const value = !!$(this).prop('checked');
35263526 power_user.message_token_count_enabled = value;
3527- saveSettingsDebounced();
35283527 switchTokenCount();
3528+ saveSettingsDebounced();
35293529 });
35303530
35313531 $('#expandMessageActions').on('input', function () {
35323532 const value = !!$(this).prop('checked');
35333533 power_user.expand_message_actions = value;
3534- saveSettingsDebounced();
35353534 switchMessageActions();
3535+ saveSettingsDebounced();
35363536 });
35373537
35383538 $('#enableZenSliders').on('input', function () {
@@ -3544,8 +3544,8 @@ $(document).ready(() => {
35443544 return;
35453545 }
35463546 power_user.enableZenSliders = value;
3547- saveSettingsDebounced();
35483547 switchZenSliders();
3548+ saveSettingsDebounced();
35493549 });
35503550
35513551 $('#enableLabMode').on('input', function () {
@@ -3558,22 +3558,22 @@ $(document).ready(() => {
35583558 }
35593559
35603560 power_user.enableLabMode = value;
3561- saveSettingsDebounced();
35623561 switchLabMode();
3562+ saveSettingsDebounced();
35633563 });
35643564
35653565 $('#mesIDDisplayEnabled').on('input', function () {
35663566 const value = !!$(this).prop('checked');
35673567 power_user.mesIDDisplay_enabled = value;
3568- saveSettingsDebounced();
35693568 switchMesIDDisplay();
3569+ saveSettingsDebounced();
35703570 });
35713571
35723572 $('#hideChatAvatarsEnabled').on('input', function () {
35733573 const value = !!$(this).prop('checked');
35743574 power_user.hideChatAvatars_enabled = value;
3575- saveSettingsDebounced();
35763575 switchHideChatAvatars();
3576+ saveSettingsDebounced();
35773577 });
35783578
35793579 $('#hotswapEnabled').on('input', function () {
@@ -3688,8 +3688,8 @@ $(document).ready(() => {
36883688 $('#ui_mode_select').on('change', function () {
36893689 const value = $(this).find(':selected').val();
36903690 power_user.ui_mode = Number(value);
3691- saveSettingsDebounced();
36923691 switchSimpleMode();
3692+ saveSettingsDebounced();
36933693 });
36943694
36953695 $('#bogus_folders').on('input', function () {