diff --git a/Modules/GUI-Main-Window.ahk b/Modules/GUI-Main-Window.ahk index 6aff8d8..40c0925 100644 --- a/Modules/GUI-Main-Window.ahk +++ b/Modules/GUI-Main-Window.ahk @@ -325,4 +325,32 @@ Gui, Show,, %FullScriptName% - Upload Settings - %BodyTextFilePath% ControlFocus, Edit4, %FullScriptName% 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 \ No newline at end of file