Debian Codegraph @

resources/qml/dialogs/LogoutDialog.qml

raw
1 // SPDX-FileCopyrightText: Nheko Contributors
2 //
3 // SPDX-License-Identifier: GPL-3.0-or-later
4
5 import Qt.labs.platform 1.1 as P
6 import QtQuick
7 import im.nheko
8
9 P.MessageDialog {
10 id: logoutRoot
11
12 title: qsTr("Log out")
13 text: CallManager.isOnCall ? qsTr("A call is in progress. Log out?") : qsTr("Are you sure you want to log out?")
14 modality: Qt.WindowModal
15 flags: Qt.Tool | Qt.WindowStaysOnTopHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint
16 buttons: P.MessageDialog.Ok | P.MessageDialog.Cancel
17 // Broken on macos, see https://bugreports.qt.io/browse/QTBUG-102078
18 //onAccepted: Nheko.logout()
19 onOkClicked: Nheko.logout()
20 }