Align structures

This commit is contained in:
Xpl0itU 2023-08-26 16:41:59 +02:00
parent 954d92e932
commit 812e64036a
2 changed files with 9 additions and 10 deletions

View file

@ -28,17 +28,17 @@ const (
type MainWindow struct { type MainWindow struct {
window *gtk.ApplicationWindow window *gtk.ApplicationWindow
treeView *gtk.TreeView treeView *gtk.TreeView
titles []wiiudownloader.TitleEntry logger *wiiudownloader.Logger
searchEntry *gtk.Entry searchEntry *gtk.Entry
categoryButtons []*gtk.ToggleButton deleteEncryptedContentsCheckbox *gtk.CheckButton
titleQueue []wiiudownloader.TitleEntry
progressWindow wiiudownloader.ProgressWindow
addToQueueButton *gtk.Button addToQueueButton *gtk.Button
progressWindow wiiudownloader.ProgressWindow
lastSearchText string
titleQueue []wiiudownloader.TitleEntry
categoryButtons []*gtk.ToggleButton
titles []wiiudownloader.TitleEntry
decryptContents bool decryptContents bool
currentRegion uint8 currentRegion uint8
deleteEncryptedContentsCheckbox *gtk.CheckButton
logger *wiiudownloader.Logger
lastSearchText string
} }
func NewMainWindow(app *gtk.Application, entries []wiiudownloader.TitleEntry, logger *wiiudownloader.Logger) *MainWindow { func NewMainWindow(app *gtk.Application, entries []wiiudownloader.TitleEntry, logger *wiiudownloader.Logger) *MainWindow {
@ -759,8 +759,7 @@ queueProcessingLoop:
return err return err
} }
queueStatus := <-queueStatusChan if !<-queueStatusChan {
if !queueStatus {
break queueProcessingLoop break queueProcessingLoop
} }
} }

View file

@ -85,6 +85,6 @@ func checkContentHashes(path string, content contentInfo, cipherHashTree *cipher
type contentInfo struct { type contentInfo struct {
ID string ID string
Size int64
Hash []byte Hash []byte
Size int64
} }