Adapt code to be compatible with older MSVC redistributable versions

This commit is contained in:
WarmUpTill 2024-05-18 22:46:21 +02:00 committed by WarmUpTill
parent 4d9c7f1054
commit a01af6cfc3
2 changed files with 4 additions and 4 deletions

View File

@ -11,19 +11,16 @@
namespace advss {
static bool registerTab();
static void setupTab(QTabWidget *);
static bool registerTabDone = registerTab();
static ActionQueueTable *tabWidget = nullptr;
static bool registerTab()
void RegisterActionQueueTab()
{
AddPluginInitStep([]() {
AddSetupTabCallback("actionQueueTab", ActionQueueTable::Create,
setupTab);
});
return true;
}
static void setTabVisible(QTabWidget *tabWidget, bool visible)

View File

@ -11,6 +11,8 @@ std::deque<std::shared_ptr<Item>> &GetActionQueues()
return queues;
}
void RegisterActionQueueTab();
void SetupActionQueues()
{
static bool done = false;
@ -19,6 +21,7 @@ void SetupActionQueues()
}
AddSaveStep(SaveActionQueues);
AddLoadStep(LoadActionQueues);
RegisterActionQueueTab();
done = true;
}