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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
electrum/gui/qt/console.py
|
@ -86,8 +86,9 @@ class Console(QtWidgets.QPlainTextEdit): |
|
|
self.namespace.update(namespace) |
|
|
self.namespace.update(namespace) |
|
|
|
|
|
|
|
|
def showMessage(self, message): |
|
|
def showMessage(self, message): |
|
|
|
|
|
curr_line = self.getCommand() |
|
|
self.appendPlainText(message) |
|
|
self.appendPlainText(message) |
|
|
self.newPrompt('') |
|
|
self.newPrompt(curr_line) |
|
|
|
|
|
|
|
|
def clear(self): |
|
|
def clear(self): |
|
|
curr_line = self.getCommand() |
|
|
curr_line = self.getCommand() |
|
@ -96,7 +97,7 @@ class Console(QtWidgets.QPlainTextEdit): |
|
|
|
|
|
|
|
|
def newPrompt(self, curr_line): |
|
|
def newPrompt(self, curr_line): |
|
|
if self.construct: |
|
|
if self.construct: |
|
|
prompt = '... ' |
|
|
prompt = '... ' + curr_line |
|
|
else: |
|
|
else: |
|
|
prompt = self.prompt + curr_line |
|
|
prompt = self.prompt + curr_line |
|
|
|
|
|
|
|
|