fix dashboard disable bug

This commit is contained in:
Eric 2021-11-28 08:31:51 -08:00
parent 705d33e66e
commit fe38910258
2 changed files with 25 additions and 24 deletions

View File

@ -1897,6 +1897,7 @@ if __name__ == '__main__':
with open(user_settings_file, 'w') as user_dict_file:
user_dict_file.write("{1: [{'call': 'N0CALL'}, {'ssid': ''}, {'icon': ''}, {'comment': ''}, {'pin': ''}, {'APRS': False}]}")
user_dict_file.close()
if CONFIG['DATA_CONFIG']['USE_DASHBOARD'] == True:
# Check to see if dashboard files exist
if Path(loc_file).is_file():
pass

View File

@ -306,7 +306,7 @@ def build_config(_config_file):
CONFIG['SYSTEMS'].update({section: {
'MODE': config.get(section, 'MODE'),
'ENABLED': config.getboolean(section, 'ENABLED'),
'USE_USER_MAN': config.getboolean(section, 'USE_USER_MAN'),
## 'USE_USER_MAN': config.getboolean(section, 'USE_USER_MAN'),
'REPEAT': config.getboolean(section, 'REPEAT'),
'MAX_PEERS': config.getint(section, 'MAX_PEERS'),
'IP': gethostbyname(config.get(section, 'IP')),