refactor: separate loop and frame logic (#1300)

This commit is contained in:
iTrooz
2023-09-07 20:33:49 +02:00
committed by GitHub
parent 4e7c3817ed
commit c07842d7ca
5 changed files with 167 additions and 137 deletions

View File

@@ -76,6 +76,8 @@ namespace {
for (const auto &[name, task, async] : init::getInitTasks())
splashWindow.addStartupTask(name, task, async);
splashWindow.startStartupTasks();
// Draw the splash window while tasks are running
if (!splashWindow.loop())
ImHexApi::System::getInitArguments().insert({ "tasks-failed", {} });