mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-31 03:12:12 +00:00
Add missed code for save settings
This commit is contained in:
parent
7d5bc71b32
commit
caf4ede82a
2 changed files with 10 additions and 4 deletions
|
@ -1216,6 +1216,11 @@ def save_settings():
|
|||
settings_general_automatic = 'False'
|
||||
else:
|
||||
settings_general_automatic = 'True'
|
||||
settings_general_update_restart = request.forms.get('settings_general_update_restart')
|
||||
if settings_general_update_restart is None:
|
||||
settings_general_update_restart = 'False'
|
||||
else:
|
||||
settings_general_update_restart = 'True'
|
||||
settings_general_single_language = request.forms.get('settings_general_single_language')
|
||||
if settings_general_single_language is None:
|
||||
settings_general_single_language = 'False'
|
||||
|
@ -1290,6 +1295,7 @@ def save_settings():
|
|||
settings.general.chmod = text_type(settings_general_chmod)
|
||||
settings.general.branch = text_type(settings_general_branch)
|
||||
settings.general.auto_update = text_type(settings_general_automatic)
|
||||
settings.general.update_restart = text_type(settings_general_update_restart)
|
||||
settings.general.single_language = text_type(settings_general_single_language)
|
||||
settings.general.minimum_score = text_type(settings_general_minimum_score)
|
||||
settings.general.use_scenename = text_type(settings_general_scenename)
|
||||
|
|
|
@ -710,7 +710,7 @@
|
|||
</div>
|
||||
<div class="one wide column">
|
||||
<div id="settings_update_restart" class="ui toggle checkbox"
|
||||
data-restart_update={{settings.general.getboolean('update_restart')}}>
|
||||
data-update-restart={{settings.general.getboolean('update_restart')}}>
|
||||
<input name="settings_general_update_restart" type="checkbox">
|
||||
<label></label>
|
||||
</div>
|
||||
|
@ -2102,10 +2102,10 @@
|
|||
$("#settings_automatic_div").checkbox('uncheck');
|
||||
}
|
||||
|
||||
if ($('#settings_restart_update').data("restart_update") === "True") {
|
||||
$("#settings_restart_update").checkbox('check');
|
||||
if ($('#settings_update_restart').data("update-restart") === "True") {
|
||||
$("#settings_update_restart").checkbox('check');
|
||||
} else {
|
||||
$("#settings_restart_update").checkbox('uncheck');
|
||||
$("#settings_update_restart").checkbox('uncheck');
|
||||
}
|
||||
|
||||
if ($('#settings_debug').data("debug") === "True") {
|
||||
|
|
Loading…
Reference in a new issue