Skip to content

Commit e7db673

Browse files
committed
disable wownero on linux
1 parent 206a460 commit e7db673

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

lib/main.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ final openedFromSWBFileStringStateProvider =
7070
// runs the MyApp widget and checks for new users, caching the value in the
7171
// miscellaneous box for later use
7272
void main() async {
73-
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
73+
WidgetsFlutterBinding.ensureInitialized();
7474
GoogleFonts.config.allowRuntimeFetching = false;
7575
if (Platform.isIOS) {
7676
Util.libraryPath = await getLibraryDirectory();
@@ -179,7 +179,9 @@ void main() async {
179179
}
180180

181181
monero.onStartup();
182-
wownero.onStartup();
182+
if (!Platform.isLinux && !Platform.isWindows) {
183+
wownero.onStartup();
184+
}
183185

184186
// SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
185187
// overlays: [SystemUiOverlay.bottom]);

lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ class _AddWalletViewState extends ConsumerState<AddWalletView> {
120120
if (Platform.isWindows) {
121121
_coins.remove(Coin.monero);
122122
_coins.remove(Coin.wownero);
123+
} else if (Platform.isLinux) {
124+
_coins.remove(Coin.wownero);
123125
}
124126

125127
coinEntities.addAll(_coins.map((e) => CoinEntity(e)));

lib/pages_desktop_specific/settings/settings_menu/nodes_settings.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ class _NodesSettings extends ConsumerState<NodesSettings> {
5858
if (Platform.isWindows) {
5959
_coins.remove(Coin.monero);
6060
_coins.remove(Coin.wownero);
61+
} else if (Platform.isLinux) {
62+
_coins.remove(Coin.wownero);
6163
}
6264

6365
searchNodeController = TextEditingController();

0 commit comments

Comments
 (0)