windowmanager: store seed attributes immediately

This commit is contained in:
tobtoht 2024-05-08 18:58:29 +02:00
parent c2701c00dd
commit d375484c2f
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -371,6 +371,8 @@ void WindowManager::tryCreateWallet(Seed seed, const QString &path, const QStrin
wallet->setCacheAttribute("feather.seed", seed.mnemonic.join(" ")); wallet->setCacheAttribute("feather.seed", seed.mnemonic.join(" "));
wallet->setCacheAttribute("feather.seedoffset", seedOffset); wallet->setCacheAttribute("feather.seedoffset", seedOffset);
// Store attributes now, so we don't lose them on crash / forced exit
wallet->store();
if (newWallet) { if (newWallet) {
wallet->setNewWallet(); wallet->setNewWallet();