|
|
|
|
@ -1550,7 +1550,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
|
|
|
|
|
|
|
|
|
|
def update_console(self): |
|
|
|
|
console = self.console |
|
|
|
|
console.history = self.wallet.db.get("qt-console-history", []) |
|
|
|
|
console.history = self.wallet.db.get_stored_item("qt-console-history", []) |
|
|
|
|
console.history_index = len(console.history) |
|
|
|
|
|
|
|
|
|
console.updateNamespace({ |
|
|
|
|
@ -2620,7 +2620,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
|
|
|
|
|
g = self.geometry() |
|
|
|
|
self.wallet.db.put("winpos-qt", [g.left(),g.top(), |
|
|
|
|
g.width(),g.height()]) |
|
|
|
|
self.wallet.db.put("qt-console-history", self.console.history[-50:]) |
|
|
|
|
if self.qr_window: |
|
|
|
|
self.qr_window.close() |
|
|
|
|
self.close_wallet() |
|
|
|
|
|