From 2b52ee26e64b56b364e9dc3ed2150fceef925e08 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 25 Aug 2019 11:39:11 +0200 Subject: [PATCH] store qt-console-history in wallet file (fix #5563) --- electrum/gui/qt/main_window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index d701c5251..6db0fcf89 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -2168,7 +2168,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): def update_console(self): console = self.console - console.history = self.config.get("console-history",[]) + console.history = self.wallet.storage.get("qt-console-history", []) console.history_index = len(console.history) console.updateNamespace({ @@ -3364,8 +3364,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): g = self.geometry() self.wallet.storage.put("winpos-qt", [g.left(),g.top(), g.width(),g.height()]) - self.config.set_key("console-history", self.console.history[-50:], - True) + self.wallet.storage.put("qt-console-history", self.console.history[-50:]) if self.qr_window: self.qr_window.close() self.close_wallet()