jaehyun pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=2c0378467c5e2d6d2a60b69409ae43e6199231e7
commit 2c0378467c5e2d6d2a60b69409ae43e6199231e7 Author: Jaehyun Cho <[email protected]> Date: Fri May 20 05:17:00 2016 +0900 file_browser: Fix not to show file browser if workspace is not set. --- src/bin/config_data.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/bin/config_data.c b/src/bin/config_data.c index 6b3b98e..69f8b00 100644 --- a/src/bin/config_data.c +++ b/src/bin/config_data.c @@ -41,6 +41,7 @@ typedef struct config_s Eina_Bool auto_complete; Eina_Bool smart_undo_redo; Eina_Bool file_browser; + Eina_Bool file_browser_loaded; Eina_Bool edc_navigator; } config_data; @@ -114,6 +115,9 @@ config_save(config_data *cd) return; } + //Restore loaded file browser config. + cd->file_browser = cd->file_browser_loaded; + eet_data_write(ef, edd_base, "config", cd, 1); eet_close(ef); } @@ -244,6 +248,9 @@ config_load(void) if (!cd->font_style) eina_stringshare_replace(&cd->font_style, "Regular"); + //Store loaded file browser config. + cd->file_browser_loaded = cd->file_browser; + return cd; } @@ -334,8 +341,11 @@ config_init(const char *input_path, const char *output_path, if (input_path[0]) config_input_path_set(input_path); if (output_path[0]) eina_stringshare_replace(&cd->output_path, output_path); + if (workspace_path[0]) eina_stringshare_replace(&cd->workspace_path, workspace_path); + else + g_cd->file_browser = EINA_FALSE; if (img_path) g_cd->img_path_list = img_path; @@ -932,6 +942,7 @@ config_file_browser_set(Eina_Bool enabled) { config_data *cd = g_cd; cd->file_browser = enabled; + cd->file_browser_loaded = enabled; } Eina_Bool --
