UI: show toolbar shortcuts

When toobar text is expanded, show shortcuts
(normally confined to menus).
This commit is contained in:
2018-05-13 10:25:18 +02:00
parent e7ee9cfd9e
commit 06a786f12d
4 changed files with 16 additions and 4 deletions

View File

@@ -1868,7 +1868,7 @@ static void widget_draw_text(uiFontStyle *fstyle, uiWidgetColors *wcol, uiBut *b
#endif
/* cut string in 2 parts - only for menu entries */
if ((but->block->flag & UI_BLOCK_LOOP) &&
if ((but->block->flag & (UI_BLOCK_LOOP | UI_BLOCK_SHOW_SHORTCUT_ALWAYS)) &&
(but->editstr == NULL))
{
if (but->flag & UI_BUT_HAS_SEP_CHAR) {