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
parent 622fac687a
commit 7654da1d8b
2 changed files with 7 additions and 2 deletions

View file

@ -32,6 +32,11 @@ class SearchableCoinList extends ConsumerWidget {
// remove firo testnet regardless
_coins.remove(Coin.firoTestNet);
// Kidgloves for Wownero on desktop
if(isDesktop) {
_coins.remove(Coin.wownero);
}
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'
as nmc;
import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
import 'dart:io' show Platform;
enum Coin {
bitcoin,
@ -36,8 +37,7 @@ enum Coin {
firoTestNet,
}
// remove firotestnet for now
const int kTestNetCoinCount = 4;
int kTestNetCoinCount = (Platform.isLinux || Platform.isWindows || Platform.isMacOS) ? 5 : 4;
extension CoinExt on Coin {
String get prettyName {