mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Merge pull request #1275 from CornerPin/launcher-flags-fix
Redraw server list when new flags are fetched
This commit is contained in:
commit
10f849cad1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user