Commit aed7f597 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Notifications] Delay configuring events

In Component.onCompleted we might not have a window yet which we need to make the events configuration dialog transient to.

Differential Revision: https://phabricator.kde.org/D21482
parent 7726f536
......@@ -40,13 +40,17 @@ Kirigami.Page {
}
appConfiguration.rootIndex = idx;
if (kcm.initialEventId && kcm.initialNotifyRcName) {
appConfiguration.configureEvents(kcm.initialEventId);
}
// In Component.onCompleted we might not be assigned a window yet
// which we need to make the events config dialog transient to it
Qt.callLater(function() {
if (kcm.initialEventId && kcm.initialNotifyRcName) {
appConfiguration.configureEvents(kcm.initialEventId);
}
kcm.initialDesktopEntry = "";
kcm.initialNotifyRcName = "";
kcm.initialEventId = "";
kcm.initialDesktopEntry = "";
kcm.initialNotifyRcName = "";
kcm.initialEventId = "";
});
}
Binding {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment