(UI companion) Call notify_refresh when core option next is toggled

This commit is contained in:
Twinaphex 2015-08-30 13:45:58 +02:00
parent 7079cdb798
commit d21dc218ed

View File

@ -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;
}