Another movements

Signed-off-by: Procybit <kyleusnaff@gmail.com>
This commit is contained in:
Procybit 2022-08-24 01:34:46 +03:00
parent 21ffa4acc4
commit 8ab0ea34ae

View File

@ -2418,11 +2418,6 @@ function system.updateDesktop()
userSettings.dockShortcuts = {}
for i = 1, #dockContainer.children do
if dockContainer.children[i].keepInDock then
-- RU чекаем новое прикрепление к dock, если ярлык, то ищем оригинальный файл и прикрепляем его
-- EN check the new attachment to the dock, if it's a shortcut, then look for the original file and attach it
while dockContainer.children[i].path:sub(-4) == ".lnk" do
dockContainer.children[i].path = system.readShortcut(dockContainer.children[i].path)
end
table.insert(userSettings.dockShortcuts, dockContainer.children[i].path)
end
end
@ -2455,6 +2450,11 @@ function system.updateDesktop()
}
dockContainer.addIcon = function(path)
-- RU чекаем новое прикрепление к dock, если ярлык, то ищем оригинальный файл и прикрепляем его
-- EN check the new attachment to the dock, if it's a shortcut, then look for the original file and attach it
while path:sub(-4) == ".lnk" do
path = system.readShortcut(path)
end
local icon = dockContainer:addChild(system.icon(1, 2, path, dockColors))
icon:analyseExtension(iconLaunchers)
icon:moveBackward()