mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 12:03:39 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			new-repo-u
			...
			disable-au
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 7194e788e4 | 
| @@ -50,6 +50,10 @@ class GeneralSection extends BaseSection { | ||||
| 						<div class="setting-description">Get beta updates</div> | ||||
| 						<div class="setting-control"></div> | ||||
| 					</div> | ||||
| 					<div class="setting-row" id="autoupdate-option"> | ||||
| 					<div class="setting-description">Automatically install new updates</div> | ||||
| 					<div class="setting-control"></div> | ||||
| 				</div> | ||||
| 				</div> | ||||
| 				<div class="title">Functionality</div> | ||||
|                 <div class="settings-card"> | ||||
| @@ -75,6 +79,7 @@ class GeneralSection extends BaseSection { | ||||
| 		this.updateTrayOption(); | ||||
| 		this.updateBadgeOption(); | ||||
| 		this.updateUpdateOption(); | ||||
| 		this.updateAutoUpdateOption(); | ||||
| 		this.updateSilentOption(); | ||||
| 		this.updateSidebarOption(); | ||||
| 		this.updateStartAtLoginOption(); | ||||
| @@ -120,6 +125,18 @@ class GeneralSection extends BaseSection { | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	updateAutoUpdateOption() { | ||||
| 		this.generateSettingOption({ | ||||
| 			$element: document.querySelector('#autoupdate-option .setting-control'), | ||||
| 			value: ConfigUtil.getConfigItem('autoUpdate', true), | ||||
| 			clickHandler: () => { | ||||
| 				const newValue = !ConfigUtil.getConfigItem('autoUpdate'); | ||||
| 				ConfigUtil.setConfigItem('autoUpdate', newValue); | ||||
| 				this.updateAutoUpdateOption(); | ||||
| 			} | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	updateSilentOption() { | ||||
| 		this.generateSettingOption({ | ||||
| 			$element: document.querySelector('#silent-option .setting-control'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user