Skip to content

Commit

Permalink
Update shell.go
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Aug 11, 2022
1 parent a0d7bac commit 99625f5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions pkg/ui/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,19 +246,19 @@ func (s *shell) refresh(ctx app.Context) {
cw += s.IpaneWidth
}

if hideMenu != s.hideMenu ||
hideIndex != s.hideIndex ||
hideAds != s.hideAds ||
w != s.width {
s.hideMenu = hideMenu
s.hideIndex = hideIndex
s.hideAds = hideAds
s.width = w

ctx.Defer(func(app.Context) {
s.ResizeContent()
})
}
// if hideMenu != s.hideMenu ||
// hideIndex != s.hideIndex ||
// hideAds != s.hideAds ||
// w != s.width {
// s.hideMenu = hideMenu
// s.hideIndex = hideIndex
// s.hideAds = hideAds
// s.width = w

ctx.Defer(func(app.Context) {
s.ResizeContent()
})
// }
}

func (s *shell) layoutSize() (int, int) {
Expand Down

0 comments on commit 99625f5

Please sign in to comment.