mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-20 02:00:55 +07:00
added output of notifications/errors after installation/import
This commit is contained in:
@@ -63,5 +63,52 @@ Window {
|
||||
function onHideMainWindow() {
|
||||
root.hide()
|
||||
}
|
||||
|
||||
function onShowErrorMessage(errorMessage) {
|
||||
popupErrorMessage.text = errorMessage
|
||||
popupErrorMessage.open()
|
||||
}
|
||||
|
||||
function onShowNotificationMessage(message) {
|
||||
popupNotificationMessage.text = message
|
||||
popupNotificationMessage.closeButtonVisible = false
|
||||
popupNotificationMessage.open()
|
||||
popupNotificationTimer.start()
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
implicitHeight: popupNotificationMessage.height
|
||||
|
||||
PopupType {
|
||||
id: popupNotificationMessage
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: popupNotificationTimer
|
||||
|
||||
interval: 3000
|
||||
repeat: false
|
||||
running: false
|
||||
onTriggered: {
|
||||
popupNotificationMessage.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
implicitHeight: popupErrorMessage.height
|
||||
|
||||
PopupType {
|
||||
id: popupErrorMessage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user