From 7334e0c35328a79143bc8f5c9ecebb59c8cb4f1a Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 11 Jun 2017 22:50:06 +0200 Subject: [PATCH] [News] Show update notification when the client is ready --- src/Components/Modules/News.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/News.cpp b/src/Components/Modules/News.cpp index 44af50d8..fb5985f0 100644 --- a/src/Components/Modules/News.cpp +++ b/src/Components/Modules/News.cpp @@ -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); + }); } } }