From d1c2688510b121c272d50b96f50008b6e1821476 Mon Sep 17 00:00:00 2001 From: Benau Date: Tue, 26 Jan 2021 16:33:19 +0800 Subject: [PATCH] Fix outdated new addon arrow if stk is killed in background --- src/main_loop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main_loop.cpp b/src/main_loop.cpp index cd16bad07..371100295 100644 --- a/src/main_loop.cpp +++ b/src/main_loop.cpp @@ -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)