Skip to content

Commit

Permalink
swap pinned and categories list when -va top used #26
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Sep 21, 2024
1 parent 5583a55 commit 4f8842b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,19 @@ func main() {
leftColumn.PackStart(searchEntry, false, false, 10)
}

pinnedListBox = setUpPinnedListBox()
leftColumn.PackStart(pinnedListBox, false, false, 10)
if *valign == "bottom" {
pinnedListBox = setUpPinnedListBox()
leftColumn.PackStart(pinnedListBox, false, false, 10)
}

categoriesListBox = setUpCategoriesListBox()
leftColumn.PackStart(categoriesListBox, false, false, 10)

if *valign == "top" {
pinnedListBox = setUpPinnedListBox()
leftColumn.PackStart(pinnedListBox, false, false, 10)
}

if *valign != "top" {
leftColumn.PackEnd(searchEntry, false, false, 10)
}
Expand Down

0 comments on commit 4f8842b

Please sign in to comment.