mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
protect history from importprivkey
This commit is contained in:
parent
a320f92023
commit
b26187666b
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ class Console(QtGui.QPlainTextEdit):
|
||||||
self.history = history
|
self.history = history
|
||||||
|
|
||||||
def addToHistory(self, command):
|
def addToHistory(self, command):
|
||||||
|
if command.find("importprivkey") > -1:
|
||||||
|
return
|
||||||
|
|
||||||
if command and (not self.history or self.history[-1] != command):
|
if command and (not self.history or self.history[-1] != command):
|
||||||
self.history.append(command)
|
self.history.append(command)
|
||||||
self.history_index = len(self.history)
|
self.history_index = len(self.history)
|
||||||
|
|
Loading…
Add table
Reference in a new issue