![]() ![]() ![]() ![]() In fact, I don't believe there is a reason for anything except the properties view itself to ever simply call RefreshProperties instead of ReloadProperties since the properties view holds the obs_properties_t object and as such would have to initiate anything that will change said object. This brings the filters window correctly in line with the source properties window. OBSPropertiesView::ReloadProperties is the function that does this before itself calling RefreshProperties and as such is the correct function to call. Such re-fetching is however required when the obs_properties_t itself wasn't updated, for example after a simple obs_source_update call (which is what the defaults button does). It does not re-fetch the obs_properties_t from the object again. This is useful for when a modified_callback changes visibility of items. Calling RefreshProperties on a properties view only rebuilds the widgets from the currently held obs_properties_t object. ![]()
0 Comments
Leave a Reply. |