From fa43716ebec4c8c86453087f64ffc97982e7303c Mon Sep 17 00:00:00 2001 From: yuriy Date: Tue, 16 Apr 2024 23:07:36 -0400 Subject: [PATCH] fixed update available not showing in GUI --- Modules/GUI-Main-Window.ahk | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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