mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 17:59:21 +00:00
fix(scripts/utils): display exit status in console.debug
This commit is contained in:
parent
05d701fa37
commit
c1f7bdaba9
1 changed files with 7 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
|||
// signal.
|
||||
function openWindow (window, parent, options) {
|
||||
var object
|
||||
|
||||
if (options && options.isString) {
|
||||
object = Qt.createQmlObject(window, parent)
|
||||
} else {
|
||||
|
|
@ -36,6 +37,9 @@ function openWindow (window, parent, options) {
|
|||
console.debug('Destroy window.')
|
||||
object.destroy()
|
||||
})
|
||||
object.exitStatus.connect(function (status) {
|
||||
console.debug('Exit status: ' + status)
|
||||
})
|
||||
|
||||
if (options && options.exitHandler) {
|
||||
object.exitStatus.connect(
|
||||
|
|
@ -43,12 +47,14 @@ function openWindow (window, parent, options) {
|
|||
options.exitHandler.bind(parent)
|
||||
)
|
||||
}
|
||||
|
||||
object.show()
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// Display a simple ConfirmDialog component. Wrap the openWindow function.
|
||||
// Display a simple ConfirmDialog component.
|
||||
// Wrap the openWindow function.
|
||||
function openConfirmDialog (parent, options) {
|
||||
openWindow(
|
||||
'import QtQuick 2.7;' +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue