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:
parent
b34c637273
commit
1b5054c1eb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue