mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05: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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue