mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
commit
ac0b2addd5
5 changed files with 14 additions and 4 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 81659ce57952c5ab54ffe6bacfbf43da159fff3e
|
Subproject commit 73d257ed2fe5b204cf3589822e226301b187b86d
|
|
@ -70,7 +70,7 @@ final openedFromSWBFileStringStateProvider =
|
||||||
// runs the MyApp widget and checks for new users, caching the value in the
|
// runs the MyApp widget and checks for new users, caching the value in the
|
||||||
// miscellaneous box for later use
|
// miscellaneous box for later use
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
GoogleFonts.config.allowRuntimeFetching = false;
|
GoogleFonts.config.allowRuntimeFetching = false;
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
Util.libraryPath = await getLibraryDirectory();
|
Util.libraryPath = await getLibraryDirectory();
|
||||||
|
@ -179,7 +179,9 @@ void main() async {
|
||||||
}
|
}
|
||||||
|
|
||||||
monero.onStartup();
|
monero.onStartup();
|
||||||
wownero.onStartup();
|
if (!Platform.isLinux && !Platform.isWindows) {
|
||||||
|
wownero.onStartup();
|
||||||
|
}
|
||||||
|
|
||||||
// SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
// SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
||||||
// overlays: [SystemUiOverlay.bottom]);
|
// overlays: [SystemUiOverlay.bottom]);
|
||||||
|
|
|
@ -120,6 +120,8 @@ class _AddWalletViewState extends ConsumerState<AddWalletView> {
|
||||||
if (Platform.isWindows) {
|
if (Platform.isWindows) {
|
||||||
_coins.remove(Coin.monero);
|
_coins.remove(Coin.monero);
|
||||||
_coins.remove(Coin.wownero);
|
_coins.remove(Coin.wownero);
|
||||||
|
} else if (Platform.isLinux) {
|
||||||
|
_coins.remove(Coin.wownero);
|
||||||
}
|
}
|
||||||
|
|
||||||
coinEntities.addAll(_coins.map((e) => CoinEntity(e)));
|
coinEntities.addAll(_coins.map((e) => CoinEntity(e)));
|
||||||
|
|
|
@ -155,6 +155,9 @@ class _StackThemeCardState extends ConsumerState<StackThemeCard> {
|
||||||
void initState() {
|
void initState() {
|
||||||
final installedTheme = getInstalled();
|
final installedTheme = getInstalled();
|
||||||
_hasTheme = installedTheme != null;
|
_hasTheme = installedTheme != null;
|
||||||
|
if (_hasTheme) {
|
||||||
|
_needsUpdate = widget.data.version > (installedTheme?.version ?? 0);
|
||||||
|
}
|
||||||
|
|
||||||
_subscription = ref
|
_subscription = ref
|
||||||
.read(mainDBProvider)
|
.read(mainDBProvider)
|
||||||
|
@ -169,7 +172,8 @@ class _StackThemeCardState extends ConsumerState<StackThemeCard> {
|
||||||
setState(() {
|
setState(() {
|
||||||
_hasTheme = hasTheme;
|
_hasTheme = hasTheme;
|
||||||
if (hasTheme) {
|
if (hasTheme) {
|
||||||
_needsUpdate = widget.data.version > installedTheme.version!;
|
_needsUpdate =
|
||||||
|
widget.data.version > (installedTheme.version ?? 0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -58,6 +58,8 @@ class _NodesSettings extends ConsumerState<NodesSettings> {
|
||||||
if (Platform.isWindows) {
|
if (Platform.isWindows) {
|
||||||
_coins.remove(Coin.monero);
|
_coins.remove(Coin.monero);
|
||||||
_coins.remove(Coin.wownero);
|
_coins.remove(Coin.wownero);
|
||||||
|
} else if (Platform.isLinux) {
|
||||||
|
_coins.remove(Coin.wownero);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchNodeController = TextEditingController();
|
searchNodeController = TextEditingController();
|
||||||
|
|
Loading…
Reference in a new issue