Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
config: start wizard only when the main config file does not exist
  • Loading branch information
perexg committed Jan 20, 2016
1 parent 735cd18 commit 5be80ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.c
Expand Up @@ -1627,7 +1627,6 @@ config_boot ( const char *path, gid_t gid, uid_t uid )
memset(&config, 0, sizeof(config));
config.idnode.in_class = &config_class;
config.ui_quicktips = 1;
config.wizard = strdup("hello");
config.info_area = strdup("login,storage,time");
config.cookie_expires = 7;
config.dscp = -1;
Expand Down Expand Up @@ -1678,6 +1677,7 @@ config_boot ( const char *path, gid_t gid, uid_t uid )
config2 = hts_settings_load("config");
if (!config2) {
tvhlog(LOG_DEBUG, "config", "no configuration, loading defaults");
config.wizard = strdup("hello");
config_newcfg = 1;
} else {
f = htsmsg_field_find(config2, "language");
Expand Down

0 comments on commit 5be80ca

Please sign in to comment.