diff --git a/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart b/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart index 6d0582c5c..34048fcbb 100644 --- a/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart +++ b/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart @@ -11,6 +11,7 @@ import 'dart:async'; import 'dart:io'; +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_svg/svg.dart'; @@ -134,9 +135,9 @@ class _AddWalletViewState extends ConsumerState { _coins.remove(Coin.wownero); } - // Remove Solana from the list of coins based on our frostEnabled preference. - if (!ref.read(prefsChangeNotifierProvider).solanaEnabled) { - _coins.remove(Coin.solana); + if (Util.isDesktop && !kDebugMode) { + _coins.remove(Coin.bitcoinFrost); + _coins.remove(Coin.bitcoinFrostTestNet); } coinEntities.addAll(_coins.map((e) => CoinEntity(e))); diff --git a/lib/pages/settings_views/global_settings_view/hidden_settings.dart b/lib/pages/settings_views/global_settings_view/hidden_settings.dart index 0073d94ac..6ebafad4a 100644 --- a/lib/pages/settings_views/global_settings_view/hidden_settings.dart +++ b/lib/pages/settings_views/global_settings_view/hidden_settings.dart @@ -10,7 +10,6 @@ import 'dart:async'; -import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -277,36 +276,6 @@ class HiddenSettings extends StatelessWidget { const SizedBox( height: 12, ), - Consumer( - builder: (_, ref, __) { - return GestureDetector( - onTap: () async { - ref - .read(prefsChangeNotifierProvider) - .solanaEnabled = - !(ref - .read(prefsChangeNotifierProvider) - .solanaEnabled); - if (kDebugMode) { - print( - "Solana enabled: ${ref.read(prefsChangeNotifierProvider).solanaEnabled}"); - } - }, - child: RoundedWhiteContainer( - child: Text( - "Toggle Solana", - style: STextStyles.button(context).copyWith( - color: Theme.of(context) - .extension()! - .accentColorDark), - ), - ), - ); - }, - ), - const SizedBox( - height: 12, - ), Consumer( builder: (_, ref, __) { return GestureDetector( diff --git a/lib/utilities/prefs.dart b/lib/utilities/prefs.dart index fc3d29e71..07726bdf1 100644 --- a/lib/utilities/prefs.dart +++ b/lib/utilities/prefs.dart @@ -68,7 +68,6 @@ class Prefs extends ChangeNotifier { await _setMaxDecimals(); _useTor = await _getUseTor(); _fusionServerInfo = await _getFusionServerInfo(); - _solanaEnabled = await _getSolanaEnabled(); _initialized = true; } @@ -1009,25 +1008,4 @@ class Prefs extends ChangeNotifier { return actualMap; } - - // Solana - - bool _solanaEnabled = false; - - bool get solanaEnabled => _solanaEnabled; - - set solanaEnabled(bool solanaEnabled) { - if (_solanaEnabled != solanaEnabled) { - DB.instance.put( - boxName: DB.boxNamePrefs, key: "solanaEnabled", value: solanaEnabled); - _solanaEnabled = solanaEnabled; - notifyListeners(); - } - } - - Future _getSolanaEnabled() async { - return await DB.instance.get( - boxName: DB.boxNamePrefs, key: "solanaEnabled") as bool? ?? - false; - } }