1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

icons: fix transmission-gtk modded app ID again

This commit is contained in:
bbedward
2026-01-05 16:44:31 -05:00
parent 8386b40c50
commit ab071e12aa
5 changed files with 64 additions and 65 deletions

View File

@@ -327,7 +327,8 @@ Item {
property int windowCount: isGrouped ? modelData.windows.length : 1
property string tooltipText: {
root._desktopEntriesUpdateTrigger;
const desktopEntry = appId ? DesktopEntries.heuristicLookup(appId) : null;
const moddedId = Paths.moddedAppId(appId);
const desktopEntry = moddedId ? DesktopEntries.heuristicLookup(moddedId) : null;
const appName = appId ? Paths.getAppName(appId, desktopEntry) : "Unknown";
if (isGrouped && windowCount > 1) {
@@ -365,7 +366,8 @@ Item {
root._desktopEntriesUpdateTrigger;
if (!appId)
return "";
const desktopEntry = DesktopEntries.heuristicLookup(appId);
const moddedId = Paths.moddedAppId(appId);
const desktopEntry = DesktopEntries.heuristicLookup(moddedId);
return Paths.getAppIcon(appId, desktopEntry);
}
smooth: true
@@ -408,7 +410,8 @@ Item {
if (!appId)
return "?";
const desktopEntry = DesktopEntries.heuristicLookup(appId);
const moddedId = Paths.moddedAppId(appId);
const desktopEntry = DesktopEntries.heuristicLookup(moddedId);
const appName = Paths.getAppName(appId, desktopEntry);
return appName.charAt(0).toUpperCase();
}
@@ -436,7 +439,6 @@ Item {
}
}
// Window title text (only visible in expanded mode)
StyledText {
anchors.left: iconImg.right
anchors.leftMargin: Theme.spacingXS
@@ -576,7 +578,8 @@ Item {
property int windowCount: isGrouped ? modelData.windows.length : 1
property string tooltipText: {
root._desktopEntriesUpdateTrigger;
const desktopEntry = appId ? DesktopEntries.heuristicLookup(appId) : null;
const moddedId = Paths.moddedAppId(appId);
const desktopEntry = moddedId ? DesktopEntries.heuristicLookup(moddedId) : null;
const appName = appId ? Paths.getAppName(appId, desktopEntry) : "Unknown";
if (isGrouped && windowCount > 1) {
@@ -613,7 +616,8 @@ Item {
root._desktopEntriesUpdateTrigger;
if (!appId)
return "";
const desktopEntry = DesktopEntries.heuristicLookup(appId);
const moddedId = Paths.moddedAppId(appId);
const desktopEntry = DesktopEntries.heuristicLookup(moddedId);
return Paths.getAppIcon(appId, desktopEntry);
}
smooth: true
@@ -655,7 +659,8 @@ Item {
if (!appId)
return "?";
const desktopEntry = DesktopEntries.heuristicLookup(appId);
const moddedId = Paths.moddedAppId(appId);
const desktopEntry = DesktopEntries.heuristicLookup(moddedId);
const appName = Paths.getAppName(appId, desktopEntry);
return appName.charAt(0).toUpperCase();
}