feat(@desktop/wallet2): Fetch networks on wallet init

This commit is contained in:
Anthony Laibe 2021-09-07 11:55:18 +02:00 committed by Iuri Matias
parent a81f4aa9ce
commit 22831f124f
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import status/stickers
import status/tokens as status_tokens
import status/utils as status_utils
import status/ens as status_ens
import status/types/[network]
import status/types/[network_type]
import ../../app_service/[main]
import ../../app_service/tasks/[qt, threadpool]
import ../utils/image_utils
@ -177,12 +177,12 @@ QtObject:
self.newVersionChanged()
proc checkForUpdates*(self: UtilsView) {.slot.} =
if self.status.settings.getCurrentNetwork() != Network.Mainnet: return
if self.status.settings.getCurrentNetwork() != NetworkType.Mainnet: return
debug "Check for updates - sync"
self.latestVersionSuccess(getLatestVersionJSON())
proc asyncCheckForUpdates*(self: UtilsView) {.slot.} =
if self.status.settings.getCurrentNetwork() != Network.Mainnet: return
if self.status.settings.getCurrentNetwork() != NetworkType.Mainnet: return
self.asyncRequestLatestVersion("latestVersionSuccess")
proc getNewVersion*(self: UtilsView): string {.slot.} =

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 192ca6e3190714a888a8d585a1113eaffe0b7d9c
Subproject commit 0179414fc034306722b71cbb8857fa15af74e990