Add option to use the old embedded WI toast

This commit is contained in:
ThisIsPIRI
2023-10-11 00:08:08 +09:00
parent 3f406dcdf0
commit 3eb8f56b00
3 changed files with 33 additions and 11 deletions

View File

@ -165,6 +165,7 @@ let power_user = {
continue_on_send: false,
trim_spaces: true,
relaxed_api_urls: false,
world_import_dialog: true,
disable_group_trimming: false,
default_instruct: '',
@ -896,6 +897,7 @@ function loadPowerUserSettings(settings, data) {
}
$('#relaxed_api_urls').prop("checked", power_user.relaxed_api_urls);
$('#world_import_dialog').prop("checked", power_user.world_import_dialog);
$('#trim_spaces').prop("checked", power_user.trim_spaces);
$('#continue_on_send').prop("checked", power_user.continue_on_send);
$('#quick_continue').prop("checked", power_user.quick_continue);
@ -2307,6 +2309,12 @@ $(document).ready(() => {
saveSettingsDebounced();
});
$("#world_import_dialog").on("input", function () {
const value = !!$(this).prop('checked');
power_user.world_import_dialog = value;
saveSettingsDebounced();
});
$('#spoiler_free_mode').on('input', function () {
power_user.spoiler_free_mode = !!$(this).prop('checked');
switchSpoilerMode();