file_browser: Disable functions if workspace is not set.

Workspace layout is disabled to disable functions in file browser if
workspace is not set.
This commit is contained in:
Jaehyun Cho 2016-05-04 15:06:04 +09:00
parent b34c637273
commit 1b5054c1eb
1 changed files with 4 additions and 0 deletions

View File

@ -538,6 +538,8 @@ file_browser_workspace_set(const char *workspace_path)
if (!workspace) return;
bd->workspace = workspace;
elm_object_disabled_set(bd->workspace_ly, EINA_FALSE);
if (workspace->sub_file_list)
gl_exp_req(NULL, NULL, workspace->it);
}
@ -629,6 +631,8 @@ file_browser_init(Evas_Object *parent)
bd->genlist = genlist;
bd->show_all_check = show_all_check;
elm_object_disabled_set(workspace_ly, EINA_TRUE);
return workspace_ly;
}