Fix for unset display setting

This commit is contained in:
Jonathan Harris 2017-07-30 23:37:30 +01:00
parent 20f9bb2e83
commit b040049c8c

View File

@ -220,7 +220,7 @@ def edsm_data(event):
def get_setting():
setting = config.getint('habzone')
if setting == 0:
return DEFAULT_SETTING # Default to Earth-Like
return SETTING_DEFAULT # Default to Earth-Like
elif setting == SETTING_NONE:
return 0 # Explicitly set by the user to display nothing
else: