UI: Log success/failure for scene collection importer

master
Ryan Foster 2020-11-25 02:37:49 -05:00 committed by Jim
parent 714c652dc9
commit 6b6a72cd21
1 changed files with 9 additions and 2 deletions

View File

@ -600,8 +600,15 @@ void OBSImporter::importCollections()
std::string out_str = json11::Json(out).dump();
os_quick_write_utf8_file(save.c_str(), out_str.c_str(),
out_str.size(), false);
bool success = os_quick_write_utf8_file(save.c_str(),
out_str.c_str(),
out_str.size(),
false);
blog(LOG_INFO, "Import Scene Collection: %s (%s) - %s",
name.toStdString().c_str(),
file.toStdString().c_str(),
success ? "SUCCESS" : "FAILURE");
}
}