From 22e5d6b0a5db403ad49fa6bdfb6851797e2da931 Mon Sep 17 00:00:00 2001 From: Saif Aqqad Date: Fri, 24 Dec 2021 10:49:56 +0200 Subject: [PATCH] UI: Add option to disable update checker --- src/UI/config/UI.ahk | 4 ++++ src/UI/config/html/UI.html | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/UI/config/UI.ahk b/src/UI/config/UI.ahk index 77eec79..bf68c80 100644 --- a/src/UI/config/UI.ahk +++ b/src/UI/config/UI.ahk @@ -198,6 +198,10 @@ UI_reset(){ ui_obj.doc.getElementById("SwitchProfileOSD").setAttribute("checked", 1) else ui_obj.doc.getElementById("SwitchProfileOSD").removeAttribute("checked") + if(config_obj.AllowUpdateChecker) + ui_obj.doc.getElementById("AllowUpdateChecker").setAttribute("checked", 1) + else + ui_obj.doc.getElementById("AllowUpdateChecker").removeAttribute("checked") ui_obj.doc.getElementById("PreferTheme").value:= config_obj.PreferTheme } diff --git a/src/UI/config/html/UI.html b/src/UI/config/html/UI.html index be8e308..b267f8a 100644 --- a/src/UI/config/html/UI.html +++ b/src/UI/config/html/UI.html @@ -528,7 +528,7 @@