mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-03 21:43:18 +00:00 
			
		
		
		
	settings: Set default value of flashtaskbar setting[Windows].
This commit is contained in:
		@@ -1,10 +1,10 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
require(__dirname + '/js/tray.js');
 | 
			
		||||
const { ipcRenderer, remote } = require('electron');
 | 
			
		||||
 | 
			
		||||
const { session } = remote;
 | 
			
		||||
 | 
			
		||||
require(__dirname + '/js/tray.js');
 | 
			
		||||
const DomainUtil = require(__dirname + '/js/utils/domain-util.js');
 | 
			
		||||
const WebView = require(__dirname + '/js/components/webview.js');
 | 
			
		||||
const ServerTab = require(__dirname + '/js/components/server-tab.js');
 | 
			
		||||
@@ -84,6 +84,13 @@ class ServerManagerView {
 | 
			
		||||
			lastActiveTab: 0
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		// Platform specific settings
 | 
			
		||||
 | 
			
		||||
		if (process.platform === 'win32') {
 | 
			
		||||
			// Only available on Windows
 | 
			
		||||
			settingOptions.flashTaskbarOnMessage = true;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		for (const i in settingOptions) {
 | 
			
		||||
			if (ConfigUtil.getConfigItem(i) === null) {
 | 
			
		||||
				ConfigUtil.setConfigItem(i, settingOptions[i]);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user