mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
Update file_browser.lua (#495)
Double-clicking an item in the search results would return an error - "file not found". Pass `node.Ref` to GetNodePath() instead.
This commit is contained in:
parent
620d3ba776
commit
14d3673dc4
@ -173,7 +173,7 @@ function BROWSER:DoNodeLeftClick(node)
|
||||
node:SetExpanded() -- It's a folder, expand/collapse it
|
||||
end
|
||||
else
|
||||
AdvDupe2.UploadFile(GetNodePath(node))
|
||||
AdvDupe2.UploadFile(GetNodePath(node.Ref))
|
||||
end
|
||||
else
|
||||
self:SetSelected(node) -- A node was clicked, select it
|
||||
@ -440,7 +440,7 @@ function BROWSER:DoNodeRightClick(node)
|
||||
end)
|
||||
else
|
||||
Menu:AddOption("Open", function()
|
||||
AdvDupe2.UploadFile(GetNodePath(node))
|
||||
AdvDupe2.UploadFile(GetNodePath(node.Ref))
|
||||
end)
|
||||
Menu:AddOption("Preview", function()
|
||||
local ReadPath, ReadArea = GetNodePath(node)
|
||||
|
Loading…
Reference in New Issue
Block a user