mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22463) -Fix [FS#4615]: Update the fios GUI immediatelly after scanning a new directory, so queued events reach the window when already updated.
This commit is contained in:
parent
990ec6f0a9
commit
4c63d8e82f
|
@ -211,6 +211,9 @@ void BuildFileList()
|
|||
|
||||
default: FiosGetSavegameList(_saveload_mode); break;
|
||||
}
|
||||
|
||||
/* Invalidate saveload window */
|
||||
InvalidateWindowData(WC_SAVELOAD, 0, 2, true);
|
||||
}
|
||||
|
||||
static void MakeSortedSaveGameList()
|
||||
|
@ -684,6 +687,12 @@ public:
|
|||
!_load_check_data.HasNewGrfs());
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
/* _fios_items changed */
|
||||
this->vscroll->SetCount(_fios_items.Length());
|
||||
this->selected = NULL;
|
||||
_load_check_data.Clear();
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue