Fix variable dock not listing variables on startup

This commit is contained in:
WarmUpTill
2026-05-07 19:34:20 +02:00
parent 91810d9c40
commit 2841fcaadb
5 changed files with 37 additions and 3 deletions

View File

@@ -20,8 +20,8 @@ static std::chrono::high_resolution_clock::time_point lastVariableChange{};
static bool setup()
{
AddSaveStep(SaveVariables);
AddLoadStep(LoadVariables);
AddEarlySaveStep(SaveVariables);
AddEarlyLoadStep(LoadVariables);
AddPluginCleanupStep([]() { variables.clear(); });
return true;
}