qml: initial crash handler impl
This commit is contained in:
@@ -241,6 +241,11 @@ ApplicationWindow
|
||||
id: notificationPopup
|
||||
}
|
||||
|
||||
Component {
|
||||
id: crashDialog
|
||||
ExceptionDialog {}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
coverTimer.start()
|
||||
|
||||
@@ -331,6 +336,12 @@ ApplicationWindow
|
||||
function onUserNotify(message) {
|
||||
notificationPopup.show(message)
|
||||
}
|
||||
function onShowException() {
|
||||
var dialog = crashDialog.createObject(app, {
|
||||
crashData: AppController.crashData()
|
||||
})
|
||||
dialog.open()
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
||||
Reference in New Issue
Block a user