Commit a82db32
committed
gfx: refresh the current menu when toggling notifications/widgets
Toggling "On-Screen Notifications" or "Graphics Widgets" can change which
dependent entries the current menu should show, and the old CMD_EVENT_REINIT
rebuilt the menu implicitly via menu_driver_init(). The lightweight
CMD_EVENT_OSD_NOTIFICATION_TOGGLE that replaced it did not, so the list went
stale until the user navigated away and back.
Flag the menu for a rebuild (ENTRIES_NEED_REFRESH | PREVENT_POPULATE) at the
end of the handler, after the widget lifecycle work, so it survives into the
next menu iteration -- matching what other refreshing toggles do. Covers both
settings, which share this command.
Signed-off-by: LibretroAdmin <LibretroAdmin@users.noreply.github.com>1 parent 4ea5ef9 commit a82db32
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4022 | 4022 | | |
4023 | 4023 | | |
4024 | 4024 | | |
| 4025 | + | |
| 4026 | + | |
| 4027 | + | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
4025 | 4033 | | |
4026 | 4034 | | |
4027 | 4035 | | |
| |||
0 commit comments