fix(@desktop): crash on shutdown path
This commit is contained in:
parent
69a6d06fea
commit
c4104b9b32
|
@ -23,8 +23,14 @@ QtObject:
|
||||||
|
|
||||||
proc delete(self: WalletView) =
|
proc delete(self: WalletView) =
|
||||||
self.accountsView.delete
|
self.accountsView.delete
|
||||||
|
self.collectiblesView.delete
|
||||||
|
self.transactionsView.delete
|
||||||
|
self.tokensView.delete
|
||||||
|
self.dappBrowserView.delete
|
||||||
self.gasView.delete
|
self.gasView.delete
|
||||||
self.ensView.delete
|
self.ensView.delete
|
||||||
|
self.historyView.delete
|
||||||
|
self.balanceView.delete
|
||||||
self.utilsView.delete
|
self.utilsView.delete
|
||||||
self.QAbstractListModel.delete
|
self.QAbstractListModel.delete
|
||||||
|
|
||||||
|
|
|
@ -45,10 +45,6 @@ proc mainProc() =
|
||||||
status.tasks.marathon.registerWorker(mailserverWorker)
|
status.tasks.marathon.registerWorker(mailserverWorker)
|
||||||
status.initNode()
|
status.initNode()
|
||||||
|
|
||||||
defer:
|
|
||||||
info "Status app is shutting down..."
|
|
||||||
status.tasks.teardown()
|
|
||||||
|
|
||||||
enableHDPI()
|
enableHDPI()
|
||||||
initializeOpenGL()
|
initializeOpenGL()
|
||||||
|
|
||||||
|
@ -185,6 +181,11 @@ proc mainProc() =
|
||||||
node.init()
|
node.init()
|
||||||
wallet.checkPendingTransactions()
|
wallet.checkPendingTransactions()
|
||||||
|
|
||||||
|
# this should be the last defer in the scope
|
||||||
|
defer:
|
||||||
|
info "Status app is shutting down..."
|
||||||
|
status.tasks.teardown()
|
||||||
|
|
||||||
engine.setRootContextProperty("loginModel", login.variant)
|
engine.setRootContextProperty("loginModel", login.variant)
|
||||||
engine.setRootContextProperty("onboardingModel", onboarding.variant)
|
engine.setRootContextProperty("onboardingModel", onboarding.variant)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue