Refactor global shortcuts, simplify debug consoles
- Move out all shortcuts from their central file to the component they actually belong to - Get rid of DebugConsoleLoader and the multiple consoles handling mess, have only one global console
This commit is contained in:
@@ -221,7 +221,11 @@ HColumnLayout {
|
||||
HMenuItem {
|
||||
icon.name: "debug"
|
||||
text: qsTr("Debug this event")
|
||||
onTriggered: eventContent.debugConsoleLoader.toggle()
|
||||
onTriggered: {
|
||||
mainUI.debugConsole.visible = true
|
||||
mainUI.debugConsole.target = eventContent
|
||||
mainUI.debugConsole.runJS("t.parent.json()", false)
|
||||
}
|
||||
}
|
||||
|
||||
HMenuItemPopupSpawner {
|
||||
|
Reference in New Issue
Block a user