Fix setting source settings without default value

Example text source's text field didn't have default value.
So, if never set before, can't be set using the "Source" action type.

Needed now that it is possible to create new sources via macro.
This commit is contained in:
WarmUpTill
2026-10-19 19:30:10 +02:00
committed by WarmUpTill
parent 3a7ad6d59b
commit 3ffe3c2fca
2 changed files with 60 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ public:
bool Save(obs_data_t *obj) const;
bool Load(obs_data_t *obj);
std::string GetID() const { return _id; }
obs_property_type GetType() const { return _type; }
bool IsList() const;
bool operator==(const SourceSetting &other) const;