fix don't hang the ui for a full version load

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2024-10-23 16:23:10 -07:00
parent 4a7d624e9b
commit 7bd04ae928
3 changed files with 5 additions and 4 deletions

View File

@ -222,11 +222,12 @@ bool Component::isMoveable()
return true;
}
bool Component::isVersionChangeable()
bool Component::isVersionChangeable(bool wait)
{
auto list = getVersionList();
if (list) {
list->waitToLoad();
if (wait)
list->waitToLoad();
return list->count() != 0;
}
return false;