forked from enlightenment/efl
fileselector: clarify the condition statement for checking ok button
Summary: elm_fileselector_buttons_ok_cancel_set() API checks the existence of ok button before adding it. This patch makes condition statement more intuitive. Reviewers: cedric, bu5hm4n Differential Revision: https://phab.enlightenment.org/D3770
This commit is contained in:
parent
9e3ddc1aff
commit
bbba3c24b5
|
@ -1712,12 +1712,10 @@ EOLIAN static void
|
|||
_elm_fileselector_buttons_ok_cancel_set(Eo *obj, Elm_Fileselector_Data *sd, Eina_Bool visible)
|
||||
{
|
||||
Evas_Object *bt;
|
||||
Eina_Bool bt_exists = EINA_FALSE;
|
||||
|
||||
visible = !!visible;
|
||||
bt_exists = !!sd->ok_button;
|
||||
|
||||
if (!(visible ^ bt_exists)) return;
|
||||
if (!visible == !sd->ok_button) return;
|
||||
|
||||
if (visible)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue