electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 2b52ee26e64b56b364e9dc3ed2150fceef925e08
parent 95383a582062c975d1da6e435378eca6418b8830
Author: ThomasV <thomasv@electrum.org>
Date:   Sun, 25 Aug 2019 11:39:11 +0200

store qt-console-history in wallet file (fix #5563)

Diffstat:
Melectrum/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 @@ -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()