Make :debug-console toggle the console.
This commit is contained in:
parent
2ef2e3088f
commit
8faf4717e5
@ -152,7 +152,11 @@ def debug_console():
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
con_widget = consolewidget.ConsoleWidget()
|
con_widget = consolewidget.ConsoleWidget()
|
||||||
objreg.register('debug-console', con_widget)
|
objreg.register('debug-console', con_widget)
|
||||||
con_widget.show()
|
|
||||||
|
if con_widget.isVisible():
|
||||||
|
con_widget.hide()
|
||||||
|
else:
|
||||||
|
con_widget.show()
|
||||||
|
|
||||||
|
|
||||||
@cmdutils.register(debug=True, maxsplit=0, no_cmd_split=True)
|
@cmdutils.register(debug=True, maxsplit=0, no_cmd_split=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user