From d21dc218ed1b96862920a4cfb8d366401695e447 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 30 Aug 2015 13:45:58 +0200 Subject: [PATCH] (UI companion) Call notify_refresh when core option next is toggled --- menu/cbs/menu_cbs_right.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/menu/cbs/menu_cbs_right.c b/menu/cbs/menu_cbs_right.c index 510f4a91ee..d28e974a74 100644 --- a/menu/cbs/menu_cbs_right.c +++ b/menu/cbs/menu_cbs_right.c @@ -323,6 +323,13 @@ int core_setting_right(unsigned type, const char *label, (void)label; core_option_next(system->core_options, idx); + + driver_t * driver = driver_get_ptr(); + const ui_companion_driver_t *ui = ui_companion_get_ptr(); + + if (ui->notify_refresh && ui_companion_is_on_foreground()) + ui->notify_refresh(driver->ui_companion_data); + return 0; }