Better "default:"

This commit is contained in:
friedkeenan 2018-09-10 20:29:06 -05:00 committed by GitHub
parent 3ae331a2b5
commit 6bcfbd66cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,7 @@ void themeStartup(ThemePreset preset) {
switch (preset) { switch (preset) {
case THEME_PRESET_LIGHT: case THEME_PRESET_LIGHT:
default:
themeDefault = &themeLight; themeDefault = &themeLight;
if (good_cfg) if (good_cfg)
theme = config_lookup(cfg, "lightTheme"); theme = config_lookup(cfg, "lightTheme");
@ -68,10 +69,6 @@ void themeStartup(ThemePreset preset) {
if (good_cfg) if (good_cfg)
theme = config_lookup(cfg, "darkTheme"); theme = config_lookup(cfg, "darkTheme");
break; break;
default:
themeDefault = &themeDark;
if (good_cfg)
theme = config_lookup(cfg, "darkTheme");
} }
if (good_cfg) { if (good_cfg) {