summaryrefslogtreecommitdiff
path: root/gui/qml/FailDialog.qml
blob: 3da421bfd3586ad40f164db9e0f524f6c13896d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.0
import QtQuick.Dialogs 1.2

MessageDialog {
    title: qsTr("Initialization Error")
    modality: Qt.NonModal
    text: ""
    onAccepted: retryOrQuit()
    onRejected: retryOrQuit()

    Component.onCompleted: {
        buttons: MessageDialog.Ok
    }

    function retryOrQuit() {
        if (ctx.loginDialog == 'true') {
            login.visible = true
        } else {
            backend.quit()
        }
    }
}