mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-03 14:49:25 +00:00
enable sounds by default for existing clients
This commit is contained in:
parent
a4223a6aab
commit
264741152a
3 changed files with 10 additions and 0 deletions
|
@ -314,6 +314,12 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// enable sounds by default for existing clients (protobuf does not express that new field is unset)
|
||||||
|
if (!prefPayload.isUseSoundForNotificationsInitialized()) {
|
||||||
|
prefPayload.setUseSoundForNotificationsInitialized(true);
|
||||||
|
setUseSoundForNotifications(true);
|
||||||
|
}
|
||||||
|
|
||||||
initialReadDone = true;
|
initialReadDone = true;
|
||||||
requestPersistence();
|
requestPersistence();
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,6 +109,7 @@ public final class PreferencesPayload implements PersistableEnvelope {
|
||||||
private boolean usePriceNotifications = true;
|
private boolean usePriceNotifications = true;
|
||||||
private boolean useStandbyMode = false;
|
private boolean useStandbyMode = false;
|
||||||
private boolean useSoundForNotifications = true;
|
private boolean useSoundForNotifications = true;
|
||||||
|
private boolean useSoundForNotificationsInitialized = false;
|
||||||
@Nullable
|
@Nullable
|
||||||
private String rpcUser;
|
private String rpcUser;
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@ -187,6 +188,7 @@ public final class PreferencesPayload implements PersistableEnvelope {
|
||||||
.setUsePriceNotifications(usePriceNotifications)
|
.setUsePriceNotifications(usePriceNotifications)
|
||||||
.setUseStandbyMode(useStandbyMode)
|
.setUseStandbyMode(useStandbyMode)
|
||||||
.setUseSoundForNotifications(useSoundForNotifications)
|
.setUseSoundForNotifications(useSoundForNotifications)
|
||||||
|
.setUseSoundForNotificationsInitialized(useSoundForNotificationsInitialized)
|
||||||
.setBuyerSecurityDepositAsPercent(buyerSecurityDepositAsPercent)
|
.setBuyerSecurityDepositAsPercent(buyerSecurityDepositAsPercent)
|
||||||
.setIgnoreDustThreshold(ignoreDustThreshold)
|
.setIgnoreDustThreshold(ignoreDustThreshold)
|
||||||
.setClearDataAfterDays(clearDataAfterDays)
|
.setClearDataAfterDays(clearDataAfterDays)
|
||||||
|
@ -283,6 +285,7 @@ public final class PreferencesPayload implements PersistableEnvelope {
|
||||||
proto.getUsePriceNotifications(),
|
proto.getUsePriceNotifications(),
|
||||||
proto.getUseStandbyMode(),
|
proto.getUseStandbyMode(),
|
||||||
proto.getUseSoundForNotifications(),
|
proto.getUseSoundForNotifications(),
|
||||||
|
proto.getUseSoundForNotificationsInitialized(),
|
||||||
proto.getRpcUser().isEmpty() ? null : proto.getRpcUser(),
|
proto.getRpcUser().isEmpty() ? null : proto.getRpcUser(),
|
||||||
proto.getRpcPw().isEmpty() ? null : proto.getRpcPw(),
|
proto.getRpcPw().isEmpty() ? null : proto.getRpcPw(),
|
||||||
proto.getTakeOfferSelectedPaymentAccountId().isEmpty() ? null : proto.getTakeOfferSelectedPaymentAccountId(),
|
proto.getTakeOfferSelectedPaymentAccountId().isEmpty() ? null : proto.getTakeOfferSelectedPaymentAccountId(),
|
||||||
|
|
|
@ -1741,6 +1741,7 @@ message PreferencesPayload {
|
||||||
string sell_screen_crypto_currency_code = 61;
|
string sell_screen_crypto_currency_code = 61;
|
||||||
bool split_offer_output = 62;
|
bool split_offer_output = 62;
|
||||||
bool use_sound_for_notifications = 63;
|
bool use_sound_for_notifications = 63;
|
||||||
|
bool use_sound_for_notifications_initialized = 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AutoConfirmSettings {
|
message AutoConfirmSettings {
|
||||||
|
|
Loading…
Reference in a new issue