提交 1a81cf46 编写于 作者: J jp9000

UI: Delete backup file if deleting scene collection

I forgot to make sure that the backup file for a scene collection would
also be deleted if a scene collection is purposely deleted by the user.
上级 4a767e01
......@@ -310,6 +310,8 @@ void OBSBasic::on_actionRemoveSceneCollection_triggered()
oldFile.insert(0, path);
oldFile += ".json";
os_unlink(oldFile.c_str());
oldFile += ".bak";
os_unlink(oldFile.c_str());
Load(newPath.c_str());
RefreshSceneCollections();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册