Utils.makePopup(): allow setting different parent

This commit is contained in:
miruka 2019-12-11 07:54:42 -04:00
parent e4f1cb6545
commit 1f12a19b48

View File

@ -42,8 +42,9 @@ function makePopup(url, parent=null, properties={}, callback=null,
} }
function debug(target, callback=null) { function debug(target, parent=null, callback=null) {
return Utils.makeObject("DebugConsole.qml", target, { target }, callback) parent = parent || target
return Utils.makeObject("DebugConsole.qml", parent, { target }, callback)
} }