do not add command to console history if it starts with a space
This commit is contained in:
@@ -144,7 +144,7 @@ class Console(QtGui.QPlainTextEdit):
|
|||||||
self.history = history
|
self.history = history
|
||||||
|
|
||||||
def addToHistory(self, command):
|
def addToHistory(self, command):
|
||||||
if command.find("importprivkey") > -1:
|
if command[0:1] == ' ':
|
||||||
return
|
return
|
||||||
|
|
||||||
if command and (not self.history or self.history[-1] != command):
|
if command and (not self.history or self.history[-1] != command):
|
||||||
|
|||||||
Reference in New Issue
Block a user