mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
remove Wownero if isDesktop
or isLinux or isWindows or isMacOS, respectively
This commit is contained in:
parent
a8b0901ec6
commit
c3a3dd3180
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue