#include <config.h>
#include <algorithm>
+#include <thread>
#include <boost/format.hpp>
#include "addon/addon.hpp"
return a1->title < a2->title;
}
+void check_online() // Shortcut to expensive function to be called by a thread
+{
+ AddonManager::get_instance().check_online();
+}
+
+
} // namespace
AddonMenu::AddonMenu() :
{
try
{
- AddonManager::get_instance().check_online();
+ std::thread addonThread(check_online);
+ addonThread.join();
refresh();
set_active_item(index);
}