]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
windowmanager: store seed attributes immediately
authortobtoht <tob@featherwallet.org>
Wed, 8 May 2024 16:58:29 +0000 (18:58 +0200)
committertobtoht <tob@featherwallet.org>
Wed, 8 May 2024 16:58:29 +0000 (18:58 +0200)
src/WindowManager.cpp

index 6a06fad3137c0d7ca7c83a1e6d7e55d202eb4193..6a37a62cc9ef560c6fc35a0ebc0f8aa7196b7931 100644 (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.seedoffset", seedOffset);
+    // Store attributes now, so we don't lose them on crash / forced exit
+    wallet->store();
 
     if (newWallet) {
         wallet->setNewWallet();