mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-06-16 05:40:16 -05:00
Don't ask to backup settings if there is nothing to backup
This commit is contained in:
parent
bd52ef8e84
commit
82c20b871b
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user