Fix the advdupe1 folder unnecessarily showing (#341)

This commit is contained in:
thegrb93 2020-12-12 16:04:35 -05:00 committed by GitHub
parent d08a7c94eb
commit 756f7d6d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1126,7 +1126,7 @@ local function UpdateClientFiles()
PurgeFiles("adv_duplicator/", pnlCanvas:AddFolder("-Advanced Duplicator 1-"))
if (pnlCanvas.Folders[2]) then
if (#pnlCanvas.Folders[2].Folders == 0 and #pnlCanvas[2].Files == 0) then
if (#pnlCanvas.Folders[2].Folders == 0 and #pnlCanvas.Folders[2].Files == 0) then
pnlCanvas:RemoveNode(pnlCanvas.Folders[2])
end