Add: allow opening of one TextfileWindow per type
This commit is contained in:
@@ -561,7 +561,7 @@ struct NewGRFTextfileWindow : public TextfileWindow {
|
||||
|
||||
void ShowNewGRFTextfileWindow(TextfileType file_type, const GRFConfig *c)
|
||||
{
|
||||
DeleteWindowByClass(WC_TEXTFILE);
|
||||
DeleteWindowById(WC_TEXTFILE, file_type);
|
||||
new NewGRFTextfileWindow(file_type, c);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user