fixed update available not showing in GUI
This commit is contained in:
@@ -325,4 +325,32 @@ Gui, Show,, %FullScriptName% - Upload Settings - %BodyTextFilePath%
|
|||||||
ControlFocus, Edit4, %FullScriptName%
|
ControlFocus, Edit4, %FullScriptName%
|
||||||
ToolTip
|
ToolTip
|
||||||
|
|
||||||
|
|
||||||
|
; calculate run time and convert to seconds
|
||||||
|
URunTime1 := round(((A_TickCount - UStartTime) / 1000), 2)
|
||||||
|
|
||||||
|
;---Check for Updates---
|
||||||
|
;------------------------------------------------
|
||||||
|
if(AutoUpdateCheck AND !UpdateAvailable){
|
||||||
|
Message = Checking for Updates
|
||||||
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
|
|
||||||
|
if(CheckForUpdates(GitReleasesAPIURL))
|
||||||
|
GuiControl,,UpdateAvailable, Uploader Update Available!
|
||||||
|
|
||||||
|
if(CheckForChromeUpdates(ChromeFilepath)){
|
||||||
|
GuiControl,,ChromeUpdateAvailable, Chrome Update Available!
|
||||||
|
ChromeUpdateAvailable := 1
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
; calculate run time and convert to seconds
|
||||||
|
URunTime2 := round(((A_TickCount - UStartTime) / 1000), 2)
|
||||||
|
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Return
|
Return
|
||||||
Reference in New Issue
Block a user