Skip to content

Commit

Permalink
menu.m: Revert to text menu if Qt-based listdlg is not available (bug…
Browse files Browse the repository at this point in the history
… #66315).

* menu.m: Check for availability of listdlg with
__event_manager_have_dialogs__() rather than __event_manager_enabled__().
  • Loading branch information
Rik committed Oct 17, 2024
1 parent 416b22b commit d7bdfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/miscellaneous/menu.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
error ("menu: OPTIONS must be string or cell array of strings");
endif

if (__event_manager_enabled__ ()) # GUI menu
if (__event_manager_have_dialogs__ ()) # GUI menu
[choice, ok] = listdlg ("Name", "menu", "PromptString", title,
"ListString", varargin, "SelectionMode", "Single");
if (! ok)
Expand Down

0 comments on commit d7bdfae

Please sign in to comment.