mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Restart renderer process instead of reloading.
Chromium has the bug that reloading would cause memory leaks, and V8's GC would slow down everything, so restarting the renderer process when the Atom is reloaded would make things much cleaner.
This commit is contained in:
@@ -206,8 +206,7 @@ window.atom =
|
||||
remote.getCurrentWindow().toggleDevTools()
|
||||
|
||||
reload: ->
|
||||
# TODO Restart renderer process when needed
|
||||
remote.getCurrentWindow().reloadIgnoringCache()
|
||||
remote.getCurrentWindow().restart()
|
||||
|
||||
focus: ->
|
||||
remote.getCurrentWindow().focus()
|
||||
|
||||
@@ -132,7 +132,7 @@ class AtomApplication
|
||||
viewMenu =
|
||||
label: 'View'
|
||||
submenu:[
|
||||
{ label: 'Reload', accelerator: 'Command+R', click: => BrowserWindow.getFocusedWindow()?.reloadIgnoringCache() }
|
||||
{ label: 'Reload', accelerator: 'Command+R', click: => BrowserWindow.getFocusedWindow()?.restart() }
|
||||
{ label: 'Toggle DevTools', accelerator: 'Alt+Command+I', click: => BrowserWindow.getFocusedWindow()?.toggleDevTools() }
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user