Skip to content

Commit

Permalink
Fix start menu icons / shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinBrett committed Dec 2, 2024
1 parent 441f1c3 commit 371ccc7
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions components/system/Files/FileEntry/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ export const getShortcutInfo = (

return {
comment,
icon:
!icon && pid && pid !== "FileExplorer"
? processDirectory[pid]?.icon
: icon,
icon,
pid,
type,
url,
Expand Down Expand Up @@ -486,24 +483,18 @@ export const getInfoWithExtension = (
} else {
callback({
comment,
getIcon:
icon && icon === processDirectory[pid]?.icon
? () =>
getInfoWithExtension(
fs,
getIcon: icon
? undefined
: () =>
getInfoWithExtension(fs, url, urlExt, ({ icon: extIcon }) =>
callback({
comment,
icon: extIcon || processDirectory[pid]?.icon,
pid,
subIcons,
url,
urlExt,
({ icon: extIcon }) =>
extIcon &&
callback({
comment,
icon: extIcon,
pid,
subIcons,
url,
})
)
: undefined,
})
),
icon: icon || UNKNOWN_ICON_PATH,
pid,
subIcons,
Expand Down

0 comments on commit 371ccc7

Please sign in to comment.