mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-06 11:12:40 +01:00
Another movements
Signed-off-by: Procybit <kyleusnaff@gmail.com>
This commit is contained in:
parent
21ffa4acc4
commit
8ab0ea34ae
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user