Fix first_run_complete config flag

This commit is contained in:
JonnyWong16 2022-02-12 17:59:14 -08:00
parent ee43f001e4
commit 40dc6e08ef
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 4 additions and 2 deletions

View file

@ -244,7 +244,6 @@
<input type="checkbox" name="notify_group_recently_added_grandparent" id="notify_group_recently_added_grandparent" value="1" checked>
<input type="checkbox" name="notify_group_recently_added_parent" id="notify_group_recently_added_parent" value="1" checked>
<input type="checkbox" name="server_changed" id="server_changed" value="1" checked>
<input type="checkbox" name="first_run_complete" id="first_run_complete" value="1" checked>
<input type="text" name="home_stats_cards" id="home_stats_cards" value="first_run_wizard">
<input type="text" name="home_library_cards" id="home_library_cards" value="first_run_wizard">
</div>

View file

@ -307,7 +307,6 @@ CHECKED_SETTINGS = [
'CACHE_IMAGES',
'CHECK_GITHUB',
'ENABLE_HTTPS',
'FIRST_RUN_COMPLETE',
'GET_FILE_SIZES',
'GROUP_HISTORY_TABLES',
'HISTORY_TABLE_ACTIVITY',

View file

@ -3261,6 +3261,10 @@ class WebInterface(object):
all_settings = config.SETTINGS + config.CHECKED_SETTINGS
kwargs = {k: v for k, v in kwargs.items() if k.upper() in all_settings}
if first_run:
kwargs['first_run_complete'] = 1
plexpy.CONFIG.process_kwargs(kwargs)
# Write the config