mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-12 09:27:01 +00:00
just exit(0); on desktop because why not...
This commit is contained in:
parent
c6836708a8
commit
ce1b1f0ffb
1 changed files with 9 additions and 11 deletions
|
@ -11,7 +11,6 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
|
@ -20,7 +19,6 @@ import '../providers/desktop/current_desktop_menu_item.dart';
|
|||
import '../themes/stack_colors.dart';
|
||||
import '../utilities/assets.dart';
|
||||
import '../utilities/text_styles.dart';
|
||||
import '../wallets/crypto_currency/crypto_currency.dart';
|
||||
import '../widgets/desktop/desktop_tor_status_button.dart';
|
||||
import '../widgets/desktop/living_stack_icon.dart';
|
||||
import 'desktop_menu_item.dart';
|
||||
|
@ -278,15 +276,15 @@ class _DesktopMenuState extends ConsumerState<DesktopMenu> {
|
|||
label: "Exit",
|
||||
value: 7,
|
||||
onChanged: (_) {
|
||||
// todo: save stuff/ notify before exit?
|
||||
if (AppConfig.coins
|
||||
.where((e) => e is Monero || e is Wownero)
|
||||
.isNotEmpty) {
|
||||
// hack to insta kill because xmr/wow native lib code sucks
|
||||
exit(0);
|
||||
} else {
|
||||
SystemNavigator.pop();
|
||||
}
|
||||
// // todo: save stuff/ notify before exit?
|
||||
// if (AppConfig.coins
|
||||
// .where((e) => e is Monero || e is Wownero)
|
||||
// .isNotEmpty) {
|
||||
// // hack to insta kill because xmr/wow native lib code sucks
|
||||
exit(0);
|
||||
// } else {
|
||||
// SystemNavigator.pop();
|
||||
// }
|
||||
},
|
||||
controller: controllers[8],
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue