Browse Source

UI: Fix deferred source properties not updating

jp9000 3 years ago
parent
commit
89881147c7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      UI/properties-view.hpp

+ 4 - 1
UI/properties-view.hpp

@@ -188,7 +188,10 @@ public:
 
 	inline void UpdateSettings()
 	{
-		callback(OBSGetStrongRef(weakObj), nullptr, settings);
+		if (callback)
+			callback(OBSGetStrongRef(weakObj), nullptr, settings);
+		else if (visUpdateCb)
+			visUpdateCb(OBSGetStrongRef(weakObj), settings);
 	}
 	inline bool DeferUpdate() const { return deferUpdate; }