UI: Fix imported scene collection names duplicating
If an imported scene collection has a name that already exists, it will instead be given a name plus an increment (e.g. "name 2", or "name 3", etc) Fixes obsproject/obs-studio#4442
This commit is contained in:
parent
b5596cbf61
commit
dde4d57d72
2 changed files with 26 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ void EnumSceneCollections(std::function<bool(const char *, const char *)> &&cb)
|
|||
os_globfree(glob);
|
||||
}
|
||||
|
||||
static bool SceneCollectionExists(const char *findName)
|
||||
bool SceneCollectionExists(const char *findName)
|
||||
{
|
||||
bool found = false;
|
||||
auto func = [&](const char *name, const char *) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue