Browse Source

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.
jp9000 10 năm trước cách đây
mục cha
commit
82b36ca41e
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      obs/properties-view.cpp

+ 4 - 1
obs/properties-view.cpp

@@ -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()