More minor fixes

This commit is contained in:
Openarl
2016-08-30 19:16:58 +10:00
parent 80a8365995
commit c672dc77e7
3 changed files with 9 additions and 4 deletions

View File

@@ -106,12 +106,15 @@ function main:Init()
self.controls.applyUpdate.shown = function()
return launch.updateAvailable and launch.updateAvailable ~= "none"
end
self.controls.checkUpdate = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 0, 0, 110, 18, "Check for Update", function()
self.controls.checkUpdate = common.New("ButtonControl", {"BOTTOMLEFT",self.anchorUpdate,"BOTTOMLEFT"}, 0, 0, 110, 18, "", function()
launch:CheckForUpdate()
end)
self.controls.checkUpdate.shown = function()
return not launch.devMode and (not launch.updateAvailable or launch.updateAvailable == "none")
end
self.controls.checkUpdate.label = function()
return launch.subScriptType == "UPDATE" and "Checking..." or "Check for Update"
end
self.controls.checkUpdate.enabled = function()
return not IsSubScriptRunning()
end