Support raising when we receive a notification

This commit is contained in:
Aleix Pol
2021-12-03 17:16:35 +01:00
committed by Aleix Pol Gonzalez
parent 8722c99c93
commit 284a1734ae
3 changed files with 20 additions and 3 deletions

View File

@@ -352,9 +352,14 @@ Kirigami.ApplicationWindow {
showPassiveNotification(i18n("%1: %2", error, detail));
}
function onShowWindow() {
function onShowWindow(token = null) {
root.showWindow()
root.raise()
if (token && KWindowSystem) {
KWindowSystem.setCurrentXdgActivationToken(basicNotification.xdgActivationToken)
KWindowSystem.activateWindow(root)
} else {
root.raise()
}
}
function onUserConsentRequired(url) {