fix: Task names not displaying correctly anymore

This commit is contained in:
WerWolv
2024-07-27 14:09:52 +02:00
parent ce26fe1db7
commit d8e1284946
32 changed files with 79 additions and 78 deletions

View File

@@ -91,7 +91,7 @@ namespace {
if (menuJustOpened) {
menuJustOpened = false;
if (!updaterTask.isRunning()) {
updaterTask = TaskManager::createBackgroundTask("Updating Scripts...", [] (auto&) {
updaterTask = TaskManager::createBackgroundTask("Updating Scripts..."_lang, [] (auto&) {
scripts = loadAllScripts();
});
}
@@ -109,7 +109,7 @@ namespace {
continue;
if (ImGui::MenuItem(name.c_str(), loader->getTypeName().c_str())) {
runnerTask = TaskManager::createTask("Running script...", TaskManager::NoProgress, [entryPoint](auto&) {
runnerTask = TaskManager::createTask("Running script..."_lang, TaskManager::NoProgress, [entryPoint](auto&) {
entryPoint();
});
}
@@ -123,7 +123,7 @@ namespace {
return !runnerTask.isRunning();
});
updaterTask = TaskManager::createBackgroundTask("Updating Scripts...", [] (auto&) {
updaterTask = TaskManager::createBackgroundTask("Updating Scripts..."_lang, [] (auto&) {
scripts = loadAllScripts();
});
}