[News] Show update notification when the client is ready
This commit is contained in:
parent
5fd5549b46
commit
7334e0c353
@ -138,8 +138,11 @@ namespace Components
|
|||||||
static bool showToast = true;
|
static bool showToast = true;
|
||||||
if (revisionNumber > REVISION && showToast)
|
if (revisionNumber > REVISION && showToast)
|
||||||
{
|
{
|
||||||
Toast::Show("cardicon_gears", "^4Update Available", "There is an update available for your client!", 5000);
|
|
||||||
showToast = false;
|
showToast = false;
|
||||||
|
Scheduler::OnReady([]()
|
||||||
|
{
|
||||||
|
Toast::Show("cardicon_gears", "^4Update Available", "There is an update available for your client!", 5000);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user