mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-25 02:28:31 -05:00
Don't ask to backup settings if there is nothing to backup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user