bug: reset wallet path on network change

When changing network type without changing
wallet path the gui will attempt to open the
most recently used wallet path and network type
even if they don't match. This commit forces the
user back to wallet setup under this condition.
As long as network type and wallet path are both
updated before closing the issue will no longer occur.
This commit is contained in:
reemuru 2022-01-31 23:32:09 -05:00
parent e9afaa9cc8
commit bf324ec2d9
No known key found for this signature in database
GPG key ID: 5EDBFEFFA9E9A7AB

View file

@ -213,6 +213,7 @@ Rectangle {
}
appWindow.disconnectRemoteNode()
networkTypeDropdown.currentIndex = Qt.binding(function() { return persistentSettings.nettype });
persistentSettings.wallet_path = ""
}
}