GPL v3, some code changes
This commit is contained in:
@@ -23,10 +23,9 @@ Singleton {
|
||||
Connections {
|
||||
function onNotification(notif) {
|
||||
if (notif.body == "MediaOngoingActivity") {
|
||||
notif.dismiss();
|
||||
return;
|
||||
}
|
||||
if (notif.traked) {
|
||||
if (notif.tracked) {
|
||||
return;
|
||||
}
|
||||
notif.tracked = true;
|
||||
@@ -66,10 +65,6 @@ Singleton {
|
||||
notification: notificationRoot.currentNotification
|
||||
implicitWidth: notificationWindow.implicitWidth
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log(notificationWrapper.height);
|
||||
popupLoader.implicitHeight = notificationWrapper.implicitHeight;
|
||||
}
|
||||
onDismissed: {
|
||||
notificationRoot.shouldShowOsd = false;
|
||||
notificationRoot.currentNotification.dismiss();
|
||||
|
||||
@@ -13,7 +13,6 @@ Singleton {
|
||||
function start(component, type) {
|
||||
HoverMediator.component = component;
|
||||
HoverMediator.type = type;
|
||||
hoverPopUp.anchor.updateAnchor();
|
||||
hoverTimer.start();
|
||||
}
|
||||
|
||||
@@ -49,7 +48,7 @@ Singleton {
|
||||
id: systray
|
||||
Text {
|
||||
text: {
|
||||
if (!HoverMediator.component.model)
|
||||
if (!HoverMediator.component?.model)
|
||||
return "";
|
||||
if (HoverMediator.component.model.tooltipTitle)
|
||||
return HoverMediator.component.model.tooltipTitle;
|
||||
|
||||
Reference in New Issue
Block a user