refactor(cmd): rename (*chatView).init to (*chatView).buildLayout
This commit is contained in:
parent
b3ac0dc6b4
commit
6d8f281fdc
1 changed files with 3 additions and 3 deletions
|
|
@ -41,11 +41,11 @@ func newChatView(app *tview.Application, cfg *config.Config) *chatView {
|
|||
|
||||
cv.SetInputCapture(cv.onInputCapture)
|
||||
|
||||
cv.init()
|
||||
cv.buildLayout()
|
||||
return cv
|
||||
}
|
||||
|
||||
func (cv *chatView) init() {
|
||||
func (cv *chatView) buildLayout() {
|
||||
cv.Clear()
|
||||
cv.mainFlex.Clear()
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ func (cv *chatView) toggleGuildsTree() {
|
|||
cv.app.SetFocus(cv.mainFlex)
|
||||
}
|
||||
} else {
|
||||
cv.init()
|
||||
cv.buildLayout()
|
||||
cv.app.SetFocus(cv.guildsTree)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue