mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Fixed a bug (again) that caused slow opening of the images browser with many (thousands) textures.
This commit is contained in:
parent
3b9eed97ec
commit
3cd3bdee7f
2 changed files with 10 additions and 6 deletions
|
@ -153,10 +153,12 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
}
|
||||
}
|
||||
|
||||
// Still none found? Then select the first
|
||||
if(!foundselecttexture)
|
||||
texturesets.Items[0].Selected = true;
|
||||
// WARNING: Some strange behavior of the listview here!
|
||||
// When you leave this line out, the list becomes very slow.
|
||||
// Also, this does not change the item selected previously.
|
||||
texturesets.Items[0].Selected = true;
|
||||
|
||||
// Texture to select when list is filled
|
||||
selecttextureonfill = selecttexture;
|
||||
|
||||
// Make groups
|
||||
|
|
|
@ -154,10 +154,12 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
}
|
||||
}
|
||||
|
||||
// Still none found? Then select the first
|
||||
if(!foundselecttexture)
|
||||
texturesets.Items[0].Selected = true;
|
||||
// WARNING: Some strange behavior of the listview here!
|
||||
// When you leave this line out, the list becomes very slow.
|
||||
// Also, this does not change the item selected previously.
|
||||
texturesets.Items[0].Selected = true;
|
||||
|
||||
// Texture to select when list is filled
|
||||
selecttextureonfill = selecttexture;
|
||||
|
||||
// Make groups
|
||||
|
|
Loading…
Reference in a new issue