[News] Show update notification when the client is ready

This commit is contained in:
momo5502 2017-06-11 22:50:06 +02:00
parent 5fd5549b46
commit 7334e0c353

View File

@ -138,8 +138,11 @@ namespace Components
static bool showToast = true;
if (revisionNumber > REVISION && showToast)
{
Toast::Show("cardicon_gears", "^4Update Available", "There is an update available for your client!", 5000);
showToast = false;
Scheduler::OnReady([]()
{
Toast::Show("cardicon_gears", "^4Update Available", "There is an update available for your client!", 5000);
});
}
}
}