Support raising when we receive a notification
This commit is contained in:
committed by
Aleix Pol Gonzalez
parent
8722c99c93
commit
284a1734ae
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user