mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-14 08:41:28 +00:00
revert lambda processing
This commit is contained in:
@@ -47,14 +47,12 @@ public class FxApplicationStyle {
|
||||
}
|
||||
|
||||
private void appThemeChanged(@SuppressWarnings("unused") ObservableValue<? extends UiTheme> observable, UiTheme oldValue, UiTheme newValue) {
|
||||
if (oldValue == UiTheme.AUTOMATIC && newValue != UiTheme.AUTOMATIC) {
|
||||
appearanceProvider.ifPresent(service -> {
|
||||
try {
|
||||
service.removeListener(systemInterfaceThemeListener);
|
||||
} catch (UiAppearanceException e) {
|
||||
LOG.warn("Failed to disable automatic theme switching.");
|
||||
}
|
||||
});
|
||||
if (oldValue == UiTheme.AUTOMATIC && newValue != UiTheme.AUTOMATIC && appearanceProvider.isPresent()) {
|
||||
try {
|
||||
appearanceProvider.get().removeListener(systemInterfaceThemeListener);
|
||||
} catch (UiAppearanceException e) {
|
||||
LOG.warn("Failed to disable automatic theme switching.");
|
||||
}
|
||||
}
|
||||
applyTheme(newValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user