qt console: fix usage in --offline mode

fixes #6731
related: #6467
This commit is contained in:
SomberNight 2020-11-14 19:36:54 +01:00
parent 8c1c07a290
commit a5c6a570ae
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9

View File

@ -59,6 +59,7 @@ class Console(QtWidgets.QPlainTextEdit):
self.setWordWrapMode(QtGui.QTextOption.WrapAnywhere)
self.setUndoRedoEnabled(False)
self.document().setDefaultFont(QtGui.QFont(MONOSPACE_FONT, 10, QtGui.QFont.Normal))
self.newPrompt("") # make sure there is always a prompt, even before first server.banner
self.updateNamespace({'run':self.run_script})
self.set_json(False)