Skip to content

Commit

Permalink
feat/#1 Remove check if current theme is applied again, check is remo…
Browse files Browse the repository at this point in the history
…ve since we don't need it
  • Loading branch information
nilsstre committed Feb 26, 2020
1 parent 6a5f73c commit b5b56bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void storeSettings() {
} else if (themeDarkProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.DARK_CSS)) {
restartWarnings.add(Localization.lang("Theme changed to dark theme."));
preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.DARK_CSS);
} else if (themeCustomProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.CUSTOM_THEME)) {
} else if (themeCustomProperty.getValue()) {
restartWarnings.add(Localization.lang("Theme change to a custom theme."));
preferences.put(JabRefPreferences.FX_THEME, preferences.getPathToCustomTheme());
}
Expand Down

0 comments on commit b5b56bf

Please sign in to comment.