mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
@@ -73,7 +73,8 @@ Item {
|
|||||||
if (root.groupByApp) {
|
if (root.groupByApp) {
|
||||||
const appGroups = new Map()
|
const appGroups = new Map()
|
||||||
|
|
||||||
pinnedApps.forEach(appId => {
|
pinnedApps.forEach(rawAppId => {
|
||||||
|
const appId = Paths.moddedAppId(rawAppId)
|
||||||
appGroups.set(appId, {
|
appGroups.set(appId, {
|
||||||
appId: appId,
|
appId: appId,
|
||||||
isPinned: true,
|
isPinned: true,
|
||||||
@@ -82,7 +83,8 @@ Item {
|
|||||||
})
|
})
|
||||||
|
|
||||||
sortedToplevels.forEach((toplevel, index) => {
|
sortedToplevels.forEach((toplevel, index) => {
|
||||||
const appId = toplevel.appId || "unknown"
|
const rawAppId = toplevel.appId || "unknown"
|
||||||
|
const appId = Paths.moddedAppId(rawAppId)
|
||||||
if (!appGroups.has(appId)) {
|
if (!appGroups.has(appId)) {
|
||||||
appGroups.set(appId, {
|
appGroups.set(appId, {
|
||||||
appId: appId,
|
appId: appId,
|
||||||
@@ -137,7 +139,8 @@ Item {
|
|||||||
unpinnedGroups.forEach(item => items.push(item))
|
unpinnedGroups.forEach(item => items.push(item))
|
||||||
root.pinnedAppCount = pinnedGroups.length
|
root.pinnedAppCount = pinnedGroups.length
|
||||||
} else {
|
} else {
|
||||||
pinnedApps.forEach(appId => {
|
pinnedApps.forEach(rawAppId => {
|
||||||
|
const appId = Paths.moddedAppId(rawAppId)
|
||||||
items.push({
|
items.push({
|
||||||
uniqueKey: "pinned_" + appId,
|
uniqueKey: "pinned_" + appId,
|
||||||
type: "pinned",
|
type: "pinned",
|
||||||
@@ -176,7 +179,7 @@ Item {
|
|||||||
items.push({
|
items.push({
|
||||||
uniqueKey: uniqueKey,
|
uniqueKey: uniqueKey,
|
||||||
type: "window",
|
type: "window",
|
||||||
appId: toplevel.appId,
|
appId: Paths.moddedAppId(toplevel.appId),
|
||||||
toplevel: toplevel,
|
toplevel: toplevel,
|
||||||
isPinned: false,
|
isPinned: false,
|
||||||
isRunning: true
|
isRunning: true
|
||||||
|
|||||||
Reference in New Issue
Block a user