mirror of
				https://github.com/gabrielkheisa/auto_dark_light_windows.git
				synced 2025-11-04 08:09:21 +00:00 
			
		
		
		
	extend the explorer.exe relaunch interval
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@@ -30,7 +30,7 @@ func setMode(light bool) {
 | 
				
			|||||||
// Restart Explorer to fully apply theme
 | 
					// Restart Explorer to fully apply theme
 | 
				
			||||||
func restartExplorer() {
 | 
					func restartExplorer() {
 | 
				
			||||||
	exec.Command("taskkill", "/f", "/im", "explorer.exe").Run()
 | 
						exec.Command("taskkill", "/f", "/im", "explorer.exe").Run()
 | 
				
			||||||
	time.Sleep(1 * time.Second)
 | 
						time.Sleep(5 * time.Second)
 | 
				
			||||||
	exec.Command("explorer.exe").Start()
 | 
						exec.Command("explorer.exe").Start()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user