From fcf2eb2205cc3cb9a1b3217c7bbba961bb8b2804 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 19 Mar 2019 09:59:01 -0400 Subject: [PATCH] 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 Differential Revision: https://phab.enlightenment.org/D8400 --- src/lib/elementary/efl_ui_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 9a827d220c..6e60b13633 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -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;