Merge pull request #433 from cypherstack/wownero/desktop

Enable Wownero on desktop
This commit is contained in:
Diego Salazar 2023-03-23 20:07:43 -06:00 committed by GitHub
commit 52e36c7827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View file

@ -46,11 +46,9 @@ class _AddWalletViewState extends State<AddWalletView> {
_searchFieldController = TextEditingController();
_searchFocusNode = FocusNode();
coins.remove(Coin.firoTestNet);
if (isDesktop) {
if (Platform.isWindows) {
coins.remove(Coin.monero);
coins.remove(Coin.wownero);
if (Platform.isWindows) {
coins.remove(Coin.monero);
}
}
super.initState();
}

View file

@ -54,12 +54,10 @@ class _NodesSettings extends ConsumerState<NodesSettings> {
void initState() {
_coins = _coins.toList();
_coins.remove(Coin.firoTestNet);
if (isDesktop) {
_coins.remove(Coin.wownero);
if (Platform.isWindows) {
_coins.remove(Coin.monero);
_coins.remove(Coin.wownero);
}
}
searchNodeController = TextEditingController();
searchNodeFocusNode = FocusNode();

View file

@ -15,6 +15,7 @@ import 'package:stackwallet/services/coins/particl/particl_wallet.dart'
as particl;
import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
import 'package:stackwallet/utilities/constants.dart';
import 'dart:io' show Platform;
enum Coin {
bitcoin,
@ -41,6 +42,7 @@ enum Coin {
}
final int kTestNetCoinCount = 4; // Util.isDesktop ? 5 : 4;
// remove firotestnet for now
extension CoinExt on Coin {
String get prettyName {