mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-27 21:44:26 -04:00
Preallocate slice
This commit is contained in:
parent
5f544a46ab
commit
40d174fd4e
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ func (mw *MainWindow) ShowAll() {
|
|||
mw.logger.Fatal("Unable to create box:", err)
|
||||
}
|
||||
|
||||
mw.categoryButtons = make([]*gtk.ToggleButton, 0)
|
||||
mw.categoryButtons = make([]*gtk.ToggleButton, 5)
|
||||
for _, cat := range []string{"Game", "Update", "DLC", "Demo", "All"} {
|
||||
button, err := gtk.ToggleButtonNewWithLabel(cat)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue