send event to save state after 'Add Project Folder' or 'Remove Project Folder

This commit is contained in:
yuanwhy
2016-08-29 22:52:26 +08:00
parent 2b3adaeace
commit 4e0da56296
2 changed files with 5 additions and 0 deletions

View File

@@ -126,6 +126,8 @@ class ApplicationDelegate
loadSettings = getWindowLoadSettings()
loadSettings['initialPaths'] = paths
setWindowLoadSettings(loadSettings)
ipcRenderer.send("did-save-state")
setAutoHideWindowMenuBar: (autoHide) ->
ipcRenderer.send("call-window-method", "setAutoHideMenuBar", autoHide)