Fixed Auto Update Check/Install from Gitea functionality
This commit is contained in:
@@ -29,7 +29,7 @@ global ScriptVersion
|
||||
global FullScriptName
|
||||
|
||||
ScriptName = Freedomain Video Uploader
|
||||
ScriptVersion = 3.0
|
||||
ScriptVersion = 3.1
|
||||
FullScriptName := ScriptName . " - " . ScriptVersion
|
||||
|
||||
|
||||
@@ -553,6 +553,22 @@ else, {
|
||||
SecondaryButtonHeights := 35
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
;---Check for Update---
|
||||
;------------------------------------------------
|
||||
if(AutoUpdateCheck AND !UpdateAvailable){
|
||||
; DevModeMsgBox("checking for updates")
|
||||
; msgbox, checkin for update
|
||||
; DevModeMsgBox(GitReleasesAPIURL)
|
||||
UpdateAvailable := CheckForUpdates(GitReleasesAPIURL)
|
||||
}
|
||||
|
||||
; DevModeMsgBox(AutoUpdateCheck)
|
||||
; DevModeMsgBox(UpdateAvailable)
|
||||
|
||||
|
||||
; -------------------------------GUI-------------------------------
|
||||
|
||||
Gui, Font, s%GuiFontSize%
|
||||
@@ -784,16 +800,6 @@ if(SkipToDBInfo){
|
||||
IniWrite, %BodyTextFilePath%, %SettingsIniFilepath%, %ScriptSettingsSection%, LastPost
|
||||
|
||||
|
||||
|
||||
;---Check for Update---
|
||||
;------------------------------------------------
|
||||
|
||||
if(AutoUpdateCheck AND !UpdateAvailable And !SkipUpdateCheckThisRun){
|
||||
; msgbox, checkin for update
|
||||
; DevModeMsgBox(GitReleasesAPIURL)
|
||||
CheckForUpdates(GitReleasesAPIURL)
|
||||
}
|
||||
|
||||
Return
|
||||
|
||||
; -------------------------------GUI GoSubs-------------------------------
|
||||
|
||||
Reference in New Issue
Block a user