remove Wownero if isDesktop

or isLinux or isWindows or isMacOS, respectively
This commit is contained in:
sneurlax 2022-11-22 11:48:52 -06:00 committed by julian
parent a8b0901ec6
commit c3a3dd3180
2 changed files with 7 additions and 2 deletions

View file

@ -32,6 +32,11 @@ class SearchableCoinList extends ConsumerWidget {
// remove firo testnet regardless // remove firo testnet regardless
_coins.remove(Coin.firoTestNet); _coins.remove(Coin.firoTestNet);
// Kidgloves for Wownero on desktop
if(isDesktop) {
_coins.remove(Coin.wownero);
}
return _coins; return _coins;
} }

View file

@ -12,6 +12,7 @@ import 'package:stackwallet/services/coins/monero/monero_wallet.dart' as xmr;
import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart' import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart'
as nmc; as nmc;
import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow; import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
import 'dart:io' show Platform;
enum Coin { enum Coin {
bitcoin, bitcoin,
@ -36,8 +37,7 @@ enum Coin {
firoTestNet, firoTestNet,
} }
// remove firotestnet for now int kTestNetCoinCount = (Platform.isLinux || Platform.isWindows || Platform.isMacOS) ? 5 : 4;
const int kTestNetCoinCount = 4;
extension CoinExt on Coin { extension CoinExt on Coin {
String get prettyName { String get prettyName {