mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-07 14:05:38 -05:00
Address active warnings
This commit is contained in:
@@ -341,7 +341,7 @@ DankModal {
|
|||||||
anchors.margins: Theme.spacingL
|
anchors.margins: Theme.spacingL
|
||||||
spacing: Theme.spacingL
|
spacing: Theme.spacingL
|
||||||
|
|
||||||
Row {
|
Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 40
|
height: 40
|
||||||
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ Rectangle {
|
|||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
visible: text.length > 0
|
visible: text.length > 0
|
||||||
linkColor: Theme.primary
|
linkColor: Theme.primary
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: (link) => Qt.openUrlExternally(link)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -412,7 +412,7 @@ Rectangle {
|
|||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
visible: text.length > 0
|
visible: text.length > 0
|
||||||
linkColor: Theme.primary
|
linkColor: Theme.primary
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: (link) => Qt.openUrlExternally(link)
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor :
|
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor :
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ PanelWindow {
|
|||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
visible: text.length > 0
|
visible: text.length > 0
|
||||||
linkColor: Theme.primary
|
linkColor: Theme.primary
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: (link) => Qt.openUrlExternally(link)
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.NoButton
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ QtObject {
|
|||||||
function _sync(newWrappers) {
|
function _sync(newWrappers) {
|
||||||
// Add new notifications
|
// Add new notifications
|
||||||
for (let w of newWrappers) {
|
for (let w of newWrappers) {
|
||||||
if (!_hasWindowFor(w)) {
|
if (w && !_hasWindowFor(w)) {
|
||||||
insertNewestAtTop(w);
|
insertNewestAtTop(w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,6 +204,7 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dismissNotification(wrapper) {
|
function dismissNotification(wrapper) {
|
||||||
|
if (!wrapper || !wrapper.notification) return;
|
||||||
wrapper.popup = false;
|
wrapper.popup = false;
|
||||||
wrapper.notification.dismiss();
|
wrapper.notification.dismiss();
|
||||||
}
|
}
|
||||||
@@ -369,11 +370,13 @@ Singleton {
|
|||||||
const group = groupedNotifications.find(g => g.key === groupKey);
|
const group = groupedNotifications.find(g => g.key === groupKey);
|
||||||
if (group) {
|
if (group) {
|
||||||
for (const notif of group.notifications) {
|
for (const notif of group.notifications) {
|
||||||
|
if (notif && notif.notification) {
|
||||||
notif.notification.dismiss();
|
notif.notification.dismiss();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
for (const notif of allWrappers) {
|
for (const notif of allWrappers) {
|
||||||
if (getGroupKey(notif) === groupKey) {
|
if (notif && notif.notification && getGroupKey(notif) === groupKey) {
|
||||||
notif.notification.dismiss();
|
notif.notification.dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user