efl_ui_win: mark legacy forbidden during bg part load always

calling this function indicates legacy is forbidden, not successfully
loading a file. this is functionally meaningless, as the only way to
trigger the previous codepath would be to have previously set legacy
as forbidden, but perhaps it will be slightly easier to read now

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8400
This commit is contained in:
Mike Blumenkrantz 2019-03-19 09:59:01 -04:00 committed by Cedric BAIL
parent 61e880e57c
commit fcf2eb2205
1 changed files with 1 additions and 1 deletions

View File

@ -7636,10 +7636,10 @@ _efl_ui_win_part_file_load(Eo *obj, Efl_Ui_Win_Data *sd, Eo *part_obj, const cha
{
const char *file, *key;
sd->legacy.forbidden = EINA_TRUE;
if (efl_file_loaded_get(part_obj)) return 0;
file = efl_file_get(part_obj);
key = efl_file_key_get(part_obj);
sd->legacy.forbidden = EINA_TRUE;
if (eina_streq(part, "background"))
{
Eina_Bool ok = EINA_TRUE;