mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 04:44:43 +00:00
Merge branch 'main' into MrCyjaneK-cyjan-monerodart
This commit is contained in:
commit
5ca5c545b4
3 changed files with 4 additions and 4 deletions
|
@ -877,7 +877,6 @@ abstract class ElectrumWalletBase
|
||||||
coin.isFrozen = coinInfo.isFrozen;
|
coin.isFrozen = coinInfo.isFrozen;
|
||||||
coin.isSending = coinInfo.isSending;
|
coin.isSending = coinInfo.isSending;
|
||||||
coin.note = coinInfo.note;
|
coin.note = coinInfo.note;
|
||||||
coin.bitcoinAddressRecord.balance += coinInfo.value;
|
|
||||||
} else {
|
} else {
|
||||||
_addCoinInfo(coin);
|
_addCoinInfo(coin);
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,7 +311,6 @@ Future<void> setup({
|
||||||
getIt.registerFactory<Box<Node>>(() => _powNodeSource, instanceName: Node.boxName + "pow");
|
getIt.registerFactory<Box<Node>>(() => _powNodeSource, instanceName: Node.boxName + "pow");
|
||||||
|
|
||||||
getIt.registerSingleton(AuthenticationStore());
|
getIt.registerSingleton(AuthenticationStore());
|
||||||
getIt.registerSingleton(LedgerViewModel());
|
|
||||||
getIt.registerSingleton<WalletListStore>(WalletListStore());
|
getIt.registerSingleton<WalletListStore>(WalletListStore());
|
||||||
getIt.registerSingleton(NodeListStoreBase.instance);
|
getIt.registerSingleton(NodeListStoreBase.instance);
|
||||||
getIt.registerSingleton<SettingsStore>(settingsStore);
|
getIt.registerSingleton<SettingsStore>(settingsStore);
|
||||||
|
@ -336,6 +335,8 @@ Future<void> setup({
|
||||||
getIt.registerSingleton<AnonpayTransactionsStore>(
|
getIt.registerSingleton<AnonpayTransactionsStore>(
|
||||||
AnonpayTransactionsStore(anonpayInvoiceInfoSource: _anonpayInvoiceInfoSource));
|
AnonpayTransactionsStore(anonpayInvoiceInfoSource: _anonpayInvoiceInfoSource));
|
||||||
|
|
||||||
|
getIt.registerLazySingleton(() => LedgerViewModel());
|
||||||
|
|
||||||
final secretStore = await SecretStoreBase.load(getIt.get<SecureStorage>());
|
final secretStore = await SecretStoreBase.load(getIt.get<SecureStorage>());
|
||||||
|
|
||||||
getIt.registerSingleton<SecretStore>(secretStore);
|
getIt.registerSingleton<SecretStore>(secretStore);
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
// import 'package:cake_wallet/src/screens/connect_device/debug_device_page.dart';
|
import 'package:cake_wallet/src/screens/connect_device/debug_device_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/connect_device/widgets/device_tile.dart';
|
import 'package:cake_wallet/src/screens/connect_device/widgets/device_tile.dart';
|
||||||
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
||||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
|
@ -105,7 +105,7 @@ class ConnectDevicePageBodyState extends State<ConnectDevicePageBody> {
|
||||||
try {
|
try {
|
||||||
_bleRefresh = ledger.scan().listen((device) => setState(() => bleDevices.add(device)))
|
_bleRefresh = ledger.scan().listen((device) => setState(() => bleDevices.add(device)))
|
||||||
..onError((e) {
|
..onError((e) {
|
||||||
throw e as Exception;
|
throw e.toString();
|
||||||
});
|
});
|
||||||
setState(() => bleIsEnabled = true);
|
setState(() => bleIsEnabled = true);
|
||||||
_bleRefreshTimer?.cancel();
|
_bleRefreshTimer?.cancel();
|
||||||
|
|
Loading…
Reference in a new issue