mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-14 23:44:51 -05:00
Add missing support to deactivate animations
This commit is contained in:
parent
415530c8ef
commit
4fc3b00fa4
3 changed files with 12 additions and 7 deletions
|
|
@ -83,6 +83,8 @@ public final class Preferences implements Persistable {
|
|||
return defaultTradeCurrency;
|
||||
}
|
||||
|
||||
private static boolean _useAnimations = true;
|
||||
|
||||
transient private final Storage<Preferences> storage;
|
||||
transient private final BitsquareEnvironment bitsquareEnvironment;
|
||||
|
||||
|
|
@ -184,6 +186,7 @@ public final class Preferences implements Persistable {
|
|||
});
|
||||
useAnimationsProperty.addListener((ov) -> {
|
||||
useAnimations = useAnimationsProperty.get();
|
||||
_useAnimations = useAnimations;
|
||||
storage.queueUpForSave(2000);
|
||||
});
|
||||
fiatCurrenciesAsObservable.addListener((Observable ov) -> {
|
||||
|
|
@ -351,6 +354,10 @@ public final class Preferences implements Persistable {
|
|||
return useAnimationsProperty.get();
|
||||
}
|
||||
|
||||
public static boolean useAnimations() {
|
||||
return _useAnimations;
|
||||
}
|
||||
|
||||
public StringProperty btcDenominationProperty() {
|
||||
return btcDenominationProperty;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue