Don't ask to backup settings if there is nothing to backup

This commit is contained in:
WarmUpTill 2022-01-05 00:51:49 +01:00 committed by WarmUpTill
parent bd52ef8e84
commit 82c20b871b

View File

@ -120,6 +120,9 @@ void SwitcherData::Prune()
bool SwitcherData::versionChanged(obs_data_t *obj, std::string currentVersion)
{
if (!obs_data_has_user_value(obj, "version")) {
return false;
}
std::string previousVersion = obs_data_get_string(obj, "version");
return previousVersion != currentVersion;
}