mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
Merge pull request #433 from cypherstack/wownero/desktop
Enable Wownero on desktop
This commit is contained in:
commit
52e36c7827
3 changed files with 5 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue