From 8ab0ea34ae154adfcbf1782d811facf587b6afb6 Mon Sep 17 00:00:00 2001 From: Procybit Date: Wed, 24 Aug 2022 01:34:46 +0300 Subject: [PATCH] Another movements Signed-off-by: Procybit --- Libraries/System.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Libraries/System.lua b/Libraries/System.lua index 634d2193..254fc4f7 100755 --- a/Libraries/System.lua +++ b/Libraries/System.lua @@ -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()