Add debug logs to ArchUpdater

This commit is contained in:
Ly-sec 2025-08-31 15:28:54 +02:00
parent ff0c83a04c
commit 7a2fa4a773
4 changed files with 31 additions and 10 deletions

View file

@ -19,7 +19,6 @@ Row {
spacing: Style.marginS * scaling
visible: getTitle() !== ""
function getTitle() {
// Use the service's focusedWindowTitle property which is updated immediately
// when WindowOpenedOrChanged events are received
@ -89,8 +88,7 @@ Row {
width: {
if (mouseArea.containsMouse) {
return Math.round(Math.min(fullTitleMetrics.contentWidth, root.maxWidth * scaling))
}
else {
} else {
return Math.round(Math.min(fullTitleMetrics.contentWidth, root.minWidth * scaling))
}
}

View file

@ -146,8 +146,7 @@ Row {
width: {
if (mouseArea.containsMouse) {
return Math.round(Math.min(fullTitleMetrics.contentWidth, root.maxWidth * scaling))
}
else {
} else {
return Math.round(Math.min(fullTitleMetrics.contentWidth, root.minWidth * scaling))
}
}
@ -216,4 +215,4 @@ Row {
target: anchor
positionAbove: Settings.data.bar.position === "bottom"
}
}
}

View file

@ -1,4 +1,4 @@
pragma ComponentBehavior: Bound
pragma ComponentBehavior
import QtQuick
import QtQuick.Controls
@ -65,9 +65,10 @@ Rectangle {
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton
onPressed: function(mouse) {
if (!taskbarItem.modelData) return
onPressed: function (mouse) {
if (!taskbarItem.modelData)
return
if (mouse.button === Qt.LeftButton) {
try {
taskbarItem.modelData.activate()