mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
bug fixes for top items, coloured text, action bar and updater
This commit is contained in:
@@ -62,6 +62,7 @@ local function loadModules()
|
||||
end
|
||||
|
||||
local function downloadFiles(url, files, index, retries, doneCallback)
|
||||
if not updaterWindow then return end
|
||||
local entry = files[index]
|
||||
if not entry then -- finished
|
||||
return doneCallback()
|
||||
@@ -101,6 +102,7 @@ local function downloadFiles(url, files, index, retries, doneCallback)
|
||||
end
|
||||
|
||||
local function updateFiles(data, keepCurrentFiles)
|
||||
if not updaterWindow then return end
|
||||
if type(data) ~= "table" then
|
||||
return Updater.error("Invalid data from updater api (not table)")
|
||||
end
|
||||
|
Reference in New Issue
Block a user