Make :debug-console toggle the console.

This commit is contained in:
Florian Bruhin 2015-11-24 18:32:18 +01:00
parent 2ef2e3088f
commit 8faf4717e5

View File

@ -152,6 +152,10 @@ def debug_console():
except KeyError:
con_widget = consolewidget.ConsoleWidget()
objreg.register('debug-console', con_widget)
if con_widget.isVisible():
con_widget.hide()
else:
con_widget.show()