mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
disable payjoin for desktop platforms [skip ci]
This commit is contained in:
@@ -14,6 +14,7 @@ import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/monero/monero.dart';
|
||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||
import 'package:cake_wallet/utils/device_info.dart';
|
||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||
import 'package:cw_core/utils/proxy_wrapper.dart';
|
||||
import 'package:cake_wallet/utils/tor.dart';
|
||||
@@ -578,7 +579,8 @@ abstract class DashboardViewModelBase with Store {
|
||||
bool get showPayjoinCard =>
|
||||
wallet.type == WalletType.bitcoin &&
|
||||
settingsStore.showPayjoinCard &&
|
||||
!settingsStore.usePayjoin;
|
||||
!settingsStore.usePayjoin &&
|
||||
DeviceInfo.instance.isMobile;
|
||||
|
||||
@observable
|
||||
bool backgroundSyncEnabled = false;
|
||||
@@ -1073,7 +1075,7 @@ abstract class DashboardViewModelBase with Store {
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@action
|
||||
void setSyncAll(bool value) => settingsStore.currentSyncAll = value;
|
||||
|
||||
@@ -1120,7 +1122,7 @@ abstract class DashboardViewModelBase with Store {
|
||||
}
|
||||
}
|
||||
|
||||
static ServicesResponse? cachedServicesResponse;
|
||||
static ServicesResponse? cachedServicesResponse;
|
||||
|
||||
Future<ServicesResponse> getServicesStatus() async {
|
||||
if (cachedServicesResponse != null) {
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:cake_wallet/ethereum/ethereum.dart';
|
||||
import 'package:cake_wallet/polygon/polygon.dart';
|
||||
import 'package:cake_wallet/store/settings_store.dart';
|
||||
import 'package:cake_wallet/tron/tron.dart';
|
||||
import 'package:cake_wallet/utils/device_info.dart';
|
||||
import 'package:cw_core/balance.dart';
|
||||
import 'package:cw_core/transaction_history.dart';
|
||||
import 'package:cw_core/transaction_info.dart';
|
||||
@@ -115,7 +116,7 @@ abstract class PrivacySettingsViewModelBase with Store {
|
||||
|
||||
bool get canUseMempoolFeeAPI => _wallet.type == WalletType.bitcoin;
|
||||
|
||||
bool get canUsePayjoin => _wallet.type == WalletType.bitcoin;
|
||||
bool get canUsePayjoin => _wallet.type == WalletType.bitcoin && DeviceInfo.instance.isMobile;
|
||||
|
||||
@action
|
||||
void setShouldSaveRecipientAddress(bool value) =>
|
||||
|
||||
Reference in New Issue
Block a user