fix send/receive

Robert Malikowski committed Jun 26, 2026 at 10:36 UTC f7d80c62a24e96cfe3d4aba364f259f3d03959a8
1 file changed +10 -5
lib/view_model/dashboard/dashboard_view_model.dart
+10 -5
@@ -102,13 +102,13 @@ abstract class DashboardViewModelBase with Store {
102 // caption: S.current.all_transactions,
103 // onChanged: transactionFilterStore.toggleAll),
104 FilterItem(
105 - value: () => transactionFilterStore.displayIncoming,
105 + value: () => transactionFilterStore.displayOutgoing,
106 caption: S.current.send,
107 - onChanged: transactionFilterStore.toggleIncoming),
107 + onChanged: transactionFilterStore.toggleOutgoing),
108 FilterItem(
109 - value: () => transactionFilterStore.displayOutgoing,
109 + value: () => transactionFilterStore.displayIncoming,
110 caption: S.current.receive,
111 - onChanged: transactionFilterStore.toggleOutgoing),
111 + onChanged: transactionFilterStore.toggleIncoming),
112 if (appStore.wallet!.type == WalletType.bitcoin)
113 FilterItem(
114 value: () => transactionFilterStore.displaySilentPayments,
@@ -118,7 +118,7 @@ abstract class DashboardViewModelBase with Store {
118 SwapFilterItem(
119 enabledProviders: () => tradeFilterStore.enabledProviders,
120 allEnabled: () => tradeFilterStore.displayAllTrades,
121 - value: () => tradeFilterStore.displayAllTrades,
121 + value: () => tradeFilterStore.enabledProviders>0,
122 onChanged: () =>
123 tradeFilterStore.toggleDisplayExchange(ExchangeProviderDescription.all)),
124 FilterItem(
@@ -406,6 +406,11 @@ abstract class DashboardViewModelBase with Store {
406 item.onChanged();
407 }
408 }
409 + for (final item in exchangeFilterItems) {
410 + if (item.value() != value) {
411 + item.onChanged();
412 + }
413 + }
414 }
415
416 @action