Changeset 1543d4c in mainline for uspace/lib/ui/src/menubar.c


Ignore:
Timestamp:
2023-10-16T17:47:29Z (19 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4030072
Parents:
9e240c1
Message:

Properly close drop-down menu on second menu-bar entry click

Note that this does not work in console due to current limitations
in libui's window emulation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/menubar.c

    r9e240c1 r1543d4c  
    563563                        mbar->active = true;
    564564
    565                         /* Open the menu, close if already open. */
    566                         if (mdd == mbar->selected)
    567                                 ui_menu_bar_select(mbar, NULL, false, pos_id);
    568                         else
     565                        /* Open the menu, if not already open. */
     566                        if (mdd != mbar->selected)
    569567                                ui_menu_bar_select(mbar, mdd, true, pos_id);
    570568
Note: See TracChangeset for help on using the changeset viewer.