mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-29 05:50:17 -07:00
refactor(ui): remove duplicated function call
This commit is contained in:
parent
1b185e88b9
commit
18d8f948b4
2
ui.go
2
ui.go
@ -433,7 +433,7 @@ func mainPageHandler(event *tcell.EventKey) *tcell.EventKey {
|
||||
case tcell.KeyCtrlT:
|
||||
// Toggle transparent
|
||||
uiStyle.Transparent = !uiStyle.Transparent
|
||||
updateBackgroundColor()
|
||||
// The following will trigger transparentDropDown SetDoneFunc
|
||||
transparentDropDown.SetCurrentOption(
|
||||
IndexOf(strconv.FormatBool(uiStyle.Transparent),
|
||||
[]string{"true", "false"}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user