Merge pull request #1275 from CornerPin/launcher-flags-fix

Redraw server list when new flags are fetched
This commit is contained in:
UnknownShadow200 2024-10-03 19:14:09 +10:00 committed by GitHub
commit 10f849cad1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1342,9 +1342,16 @@ static void ServersScreen_Activated(struct LScreen* s_) {
static void ServersScreen_Tick(struct LScreen* s_) {
struct ServersScreen* s = (struct ServersScreen*)s_;
int flagsCount;
LScreen_Tick(s_);
flagsCount = FetchFlagsTask.count;
LWebTask_Tick(&FetchFlagsTask.Base, NULL);
if (flagsCount != FetchFlagsTask.count) {
LBackend_NeedsRedraw(&s->table);
}
if (!FetchServersTask.Base.working) return;
LWebTask_Tick(&FetchServersTask.Base, NULL);
if (!FetchServersTask.Base.completed) return;