v/GTT
1
0
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:
eeeXun 2023-06-07 13:28:12 +08:00
parent 1b185e88b9
commit 18d8f948b4

2
ui.go
View File

@ -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"}))