mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-14 08:41:28 +00:00
minor cleanup
This commit is contained in:
@@ -27,8 +27,10 @@ public class JfxUiAppearanceProvider implements UiAppearanceProvider {
|
||||
private final AtomicReference<JfxUiAppearanceImpl> realImpl = new AtomicReference<>(null);
|
||||
|
||||
public void initialize(Platform.Preferences preferences) {
|
||||
realImpl.compareAndSet(null, new JfxUiAppearanceImpl(preferences));
|
||||
LOG.debug("Initialized {} with JavaFX preferences", JfxUiAppearanceImpl.class);
|
||||
var isSet = realImpl.compareAndSet(null, new JfxUiAppearanceImpl(preferences));
|
||||
if (isSet) {
|
||||
LOG.debug("Initialized {} with JavaFX preferences", JfxUiAppearanceImpl.class);
|
||||
}
|
||||
}
|
||||
|
||||
private static class JfxUiAppearanceImpl implements UiAppearanceProvider {
|
||||
|
||||
Reference in New Issue
Block a user