mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-24 22:28:34 -05:00
UI: Allow buttons to refresh properties view
I forgot to check the return value from the button to see if the button wanted the UI to be refreshed or not.
This commit is contained in:
@@ -664,7 +664,10 @@ bool WidgetInfo::FontChanged(const char *setting)
|
||||
|
||||
void WidgetInfo::ButtonClicked()
|
||||
{
|
||||
obs_property_button_clicked(property, view->obj);
|
||||
if (obs_property_button_clicked(property, view->obj)) {
|
||||
QMetaObject::invokeMethod(view, "RefreshProperties",
|
||||
Qt::QueuedConnection);
|
||||
}
|
||||
}
|
||||
|
||||
void WidgetInfo::ControlChanged()
|
||||
|
||||
Reference in New Issue
Block a user