electrum

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

commit ddc94197aa6888e7d32846fd10479ec660125780
parent 5337331fa00ab2ca6767f1a07fcda34099a01c38
Author: BenoƮt Verret <verret.benoit@gmail.com>
Date:   Fri, 18 Sep 2020 12:30:43 -0400

Keep console input when switching server (#6607)

Console input was being replaced by an empty line every time the
server used changed.
Diffstat:
Melectrum/gui/qt/console.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py @@ -86,8 +86,9 @@ class Console(QtWidgets.QPlainTextEdit): self.namespace.update(namespace) def showMessage(self, message): + curr_line = self.getCommand() self.appendPlainText(message) - self.newPrompt('') + self.newPrompt(curr_line) def clear(self): curr_line = self.getCommand() @@ -96,7 +97,7 @@ class Console(QtWidgets.QPlainTextEdit): def newPrompt(self, curr_line): if self.construct: - prompt = '... ' + prompt = '... ' + curr_line else: prompt = self.prompt + curr_line