feat: fully delete shortcuts instead of trash

This commit is contained in:
Leon Shepelev
2022-11-27 19:09:09 +03:00
committed by GitHub
parent fb536f7649
commit d76d5688c4

View File

@@ -593,7 +593,7 @@ local function moveSelectedIconsToTrash(selectedIcons)
for i = 1, #selectedIcons do
icon = selectedIcons[i]
if filesystem.path(icon.path) == paths.user.trash then
if filesystem.path(icon.path) == paths.user.trash or icon.isShortcut then
filesystem.remove(icon.path)
else
local name = filesystem.name(icon.path)