mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
enable sounds by default for existing clients
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-22.04) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-22.04) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
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;
|
||||
requestPersistence();
|
||||
}
|
||||
|
|
|
@ -109,6 +109,7 @@ public final class PreferencesPayload implements PersistableEnvelope {
|
|||
private boolean usePriceNotifications = true;
|
||||
private boolean useStandbyMode = false;
|
||||
private boolean useSoundForNotifications = true;
|
||||
private boolean useSoundForNotificationsInitialized = false;
|
||||
@Nullable
|
||||
private String rpcUser;
|
||||
@Nullable
|
||||
|
@ -187,6 +188,7 @@ public final class PreferencesPayload implements PersistableEnvelope {
|
|||
.setUsePriceNotifications(usePriceNotifications)
|
||||
.setUseStandbyMode(useStandbyMode)
|
||||
.setUseSoundForNotifications(useSoundForNotifications)
|
||||
.setUseSoundForNotificationsInitialized(useSoundForNotificationsInitialized)
|
||||
.setBuyerSecurityDepositAsPercent(buyerSecurityDepositAsPercent)
|
||||
.setIgnoreDustThreshold(ignoreDustThreshold)
|
||||
.setClearDataAfterDays(clearDataAfterDays)
|
||||
|
@ -283,6 +285,7 @@ public final class PreferencesPayload implements PersistableEnvelope {
|
|||
proto.getUsePriceNotifications(),
|
||||
proto.getUseStandbyMode(),
|
||||
proto.getUseSoundForNotifications(),
|
||||
proto.getUseSoundForNotificationsInitialized(),
|
||||
proto.getRpcUser().isEmpty() ? null : proto.getRpcUser(),
|
||||
proto.getRpcPw().isEmpty() ? null : proto.getRpcPw(),
|
||||
proto.getTakeOfferSelectedPaymentAccountId().isEmpty() ? null : proto.getTakeOfferSelectedPaymentAccountId(),
|
||||
|
|
|
@ -1741,6 +1741,7 @@ message PreferencesPayload {
|
|||
string sell_screen_crypto_currency_code = 61;
|
||||
bool split_offer_output = 62;
|
||||
bool use_sound_for_notifications = 63;
|
||||
bool use_sound_for_notifications_initialized = 64;
|
||||
}
|
||||
|
||||
message AutoConfirmSettings {
|
||||
|
|
Loading…
Reference in a new issue