Browse Source

Keep console input when switching server (#6607)

Console input was being replaced by an empty line every time the
server used changed.
patch-4
Benoît Verret 4 years ago
committed by GitHub
parent
commit
ddc94197aa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      electrum/gui/qt/console.py

5
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

Loading…
Cancel
Save