Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Fix collision of existing backup files for new scene collections
The new Scene Collection code uses the lazy creation behaviour of OBSBasic::Load, which itself uses obs_data_create_from_json_file_safe. The internal implementation will create a new scene collection with the contents of an existing backup file with the same name however, thus users would end up with a nominally "new" scene collection that contains contents of an old backup. This update will remove any existing backup file colliding with the name of the new, duplicated, or renamed, scene collection and remove it before activating it (and having OBSBasic::Load create a new one).
- Loading branch information