Skip to content

Commit

Permalink
UI: Add option to disable update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
SaifAqqad committed Dec 24, 2021
1 parent dc4d947 commit 22e5d6b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/UI/config/UI.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
13 changes: 11 additions & 2 deletions src/UI/config/html/UI.html
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
<div class="container visible hidden tab-hidden" id="global_options_tab_content">
<div id="global_options_container" class="columns">
<!-- Global options -->
<div class="column is-7">
<div class="column is-8">
<label class="label title is-6 noselect">Options</label>
<!-- Mute on startup -->
<div class="tag is-small option" onclick="ahk.UI_onGlobalOption('MuteOnStartup',1);this.blur()"
Expand Down Expand Up @@ -559,8 +559,17 @@
state</span>
</label>
</div>
<div class="tag is-small option has-tooltip"
onclick="ahk.UI_onGlobalOption('AllowUpdateChecker',1);this.blur()" tabindex=0
onkeydown="switch(event.keyCode){case 32:case 13:this.click()}">
<label class="checkbox">
<input tabindex="0" type="checkbox" name="AllowUpdateChecker" id="AllowUpdateChecker"
disabled>
<span class="AllowUpdateChecker-label">Check for updates on startup</span>
</label>
</div>
</div>
<div class="column is-5">
<div class="column is-4">
<!-- default profile -->
<label class="label title is-6 noselect" for="default_profile">Default
Profile</label>
Expand Down

0 comments on commit 22e5d6b

Please sign in to comment.