Fix outdated new addon arrow if stk is killed in background

This commit is contained in:
Benau 2021-01-26 16:33:19 +08:00
parent 65f23987f1
commit d1c2688510

View File

@ -124,6 +124,10 @@ extern "C" void pause_mainloop()
PlayerManager::get()->save();
if (addons_manager->hasDownloadedIcons())
addons_manager->saveInstalled();
// Make sure the new addon arrow is gone when stk is killed in background
// user_config saves the latest addon time
if (addons_manager->hasNewAddons())
user_config->saveConfig();
Online::RequestManager::get()->setPaused(true);
IrrlichtDevice* dev = irr_driver->getDevice();
if (dev)