Make new console when needed & destroy old console
This commit is contained in:
parent
f125b6d60e
commit
f5b0cbb204
|
@ -41,6 +41,9 @@ HDrawer {
|
|||
|
||||
|
||||
Component.onCompleted: {
|
||||
if (mainUI.shortcuts.debugConsole)
|
||||
mainUI.shortcuts.debugConsole.destroy()
|
||||
|
||||
mainUI.shortcuts.debugConsole = debugConsole
|
||||
forceActiveFocus()
|
||||
position = 1
|
||||
|
|
|
@ -25,9 +25,15 @@ Item {
|
|||
}
|
||||
|
||||
HShortcut {
|
||||
enabled: debugMode && debugConsole
|
||||
enabled: debugMode
|
||||
sequences: settings.keys.toggleDebugConsole
|
||||
onActivated: debugConsole.visible = ! debugConsole.visible
|
||||
onActivated: {
|
||||
if (debugConsole) {
|
||||
debugConsole.visible = ! debugConsole.visible
|
||||
} else {
|
||||
Utils.debug(mainUI || window)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HShortcut {
|
||||
|
|
Loading…
Reference in New Issue
Block a user