mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-03 21:43:18 +00:00 
			
		
		
		
	Merge pull request #235 from geeeeeeeeek/issue/reload-app-for-debugging
Add 'Hard Reload' mode for debugging.
This commit is contained in:
		@@ -207,6 +207,11 @@ app.on('ready', () => {
 | 
				
			|||||||
		app.quit();
 | 
							app.quit();
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ipc.on('hard-reload', () => {
 | 
				
			||||||
 | 
							mainWindow.reload();
 | 
				
			||||||
 | 
							page.send('destroytray');
 | 
				
			||||||
 | 
						});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ipc.on('toggle-app', () => {
 | 
						ipc.on('toggle-app', () => {
 | 
				
			||||||
		if (mainWindow.isVisible()) {
 | 
							if (mainWindow.isVisible()) {
 | 
				
			||||||
			mainWindow.hide();
 | 
								mainWindow.hide();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,6 +59,15 @@ const viewSubmenu = [
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							label: 'Hard Reload',
 | 
				
			||||||
 | 
							accelerator: 'CommandOrControl+Shift+R',
 | 
				
			||||||
 | 
							click(item, focusedWindow) {
 | 
				
			||||||
 | 
								if (focusedWindow) {
 | 
				
			||||||
 | 
									sendAction('hard-reload');
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		type: 'separator'
 | 
							type: 'separator'
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user