mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Don't block UI while executing long runnig actions
The previous approach had the problem of losing any action internal state changes in the created copy. Revert "Fix temp var values of actions not being accessible" This reverts commitdf42538319. Revert "Don't block UI while running actions" This reverts commita01d26e25d.
This commit is contained in:
@@ -167,24 +167,6 @@ bool MacroSegment::IsTempVarInUse(const std::string &id) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void MacroSegment::CopyTempVarValuesFrom(const MacroSegment &other)
|
||||
{
|
||||
for (const auto &src : other._tempVariables) {
|
||||
for (auto &dst : _tempVariables) {
|
||||
if (dst.ID() != src.ID()) {
|
||||
continue;
|
||||
}
|
||||
auto value = src.Value();
|
||||
if (value) {
|
||||
dst.SetValue(*value);
|
||||
} else {
|
||||
dst.InvalidateValue();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MacroSegment::SetTempVarValue(const std::string &id,
|
||||
const std::string &value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user