fix: refine desktop entry lookup retry logic

This commit is contained in:
Akash
2026-02-17 14:47:08 +05:30
parent fb1b674a30
commit cea0acafff
@@ -22,12 +22,12 @@ DockButton {
Timer { Timer {
// Retry looking up the desktop entry if it failed (e.g. database not loaded yet) // Retry looking up the desktop entry if it failed (e.g. database not loaded yet)
property int retryCount: 0 property int retryCount: 5
interval: 500 interval: 1000
running: !root.isSeparator && root.desktopEntry === null && retryCount < 30 running: !root.isSeparator && root.desktopEntry === null && retryCount > 0
repeat: true repeat: true
onTriggered: { onTriggered: {
retryCount++; retryCount--;
root.desktopEntry = DesktopEntries.heuristicLookup(root.appToplevel.appId); root.desktopEntry = DesktopEntries.heuristicLookup(root.appToplevel.appId);
} }
} }