Commit 5124d75
committed
menu: toggle Menu Widgets without a full driver reinit too
menu_enable_widgets ("Use Menu Widgets") fired CMD_EVENT_REINIT on change,
reinitialising every driver just to enable/disable the gfx_widgets system.
Its only consumer is the widget-enable block in drivers_init(), which the
new CMD_EVENT_OSD_NOTIFICATION_TOGGLE handler already re-evaluates (it reads
menu_enable_widgets in its want_widgets test). Point this setting at that
command as well, so toggling widgets is instant instead of flashing a
context reinit. Same runtime-widget-lifecycle caveat as the notifications
toggle applies.
Signed-off-by: LibretroAdmin <LibretroAdmin@users.noreply.github.com>1 parent 7292e0c commit 5124d75
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17039 | 17039 | | |
17040 | 17040 | | |
17041 | 17041 | | |
17042 | | - | |
| 17042 | + | |
17043 | 17043 | | |
17044 | 17044 | | |
17045 | 17045 | | |
| |||
0 commit comments