#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
{
- std::thread addonThread(check_online);
- addonThread.join();
+ AddonManager::get_instance().check_online();
refresh();
set_active_item(index);
}