electrum

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

commit a6db76cc0e084cacec137903460617ed9941fda6
parent d50e36f3a274a4cd6360a44d5e849861136c1fd8
Author: thomasv <thomasv@gitorious>
Date:   Sat,  2 Mar 2013 14:05:35 +0100

save console history

Diffstat:
Mgui/gui_qt.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/gui/gui_qt.py b/gui/gui_qt.py @@ -1322,6 +1322,9 @@ class ElectrumWindow(QMainWindow): from qt_console import Console from electrum import util, bitcoin, commands self.console = console = Console() + self.console.history = self.config.get("console-history",[]) + self.console.history_index = len(self.console.history) + console.updateNamespace({'wallet' : self.wallet, 'interface' : self.wallet.interface, 'gui':self}) console.updateNamespace({'util' : util, 'bitcoin':bitcoin}) @@ -2474,6 +2477,7 @@ class ElectrumWindow(QMainWindow): self.config.set_key("winpos-qt", [g.left(),g.top(),g.width(),g.height()], True) self.save_column_widths() self.config.set_key("column-widths", self.column_widths, True) + self.config.set_key("console-history",self.console.history[-50:]) event.accept()