Skip to content

Commit

Permalink
Moved restoring project before loading files (ref #107).
Browse files Browse the repository at this point in the history
This is needed to take project configuration into account before files are
loaded.
  • Loading branch information
pkulchenko committed Oct 22, 2013
1 parent d818952 commit 3c87a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,12 @@ PackageEventHandle("onRegister")
SettingsRestoreEditorSettings()
SettingsRestoreFramePosition(ide.frame, "MainFrame")
SettingsRestoreFileHistory(SetFileHistory)
SettingsRestoreProjectSession(FileTreeSetProjects)
SettingsRestoreFileSession(function(tabs, params)
if params and params.recovery
then return SetOpenTabs(params)
else return SetOpenFiles(tabs, params) end
end)
SettingsRestoreProjectSession(FileTreeSetProjects)
SettingsRestoreView()

-- ---------------------------------------------------------------------------
Expand Down

0 comments on commit 3c87a0a

Please sign in to comment.