From d375484c2f99a18f1896b918fc770539eb9b5d9f Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 8 May 2024 18:58:29 +0200 Subject: [PATCH] windowmanager: store seed attributes immediately --- src/WindowManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WindowManager.cpp b/src/WindowManager.cpp index 6a06fad..6a37a62 100644 --- a/src/WindowManager.cpp +++ b/src/WindowManager.cpp @@ -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();