disable payjoin for desktop platforms [skip ci]

This commit is contained in:
OmarHatem
2025-08-23 03:28:33 +03:00
parent 7b600c9cd8
commit c385c6bec5
6 changed files with 14 additions and 11 deletions
@@ -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) =>