From 58762c6f8b7c5836c2e00ff0a438f6fbcf54d5b6 Mon Sep 17 00:00:00 2001 From: eeeXun Date: Mon, 24 Oct 2022 13:08:54 +0800 Subject: [PATCH] update transparent CurrentOption --- ui.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui.go b/ui.go index 55107e0..ae6aade 100644 --- a/ui.go +++ b/ui.go @@ -235,6 +235,9 @@ func pagesHandler(event *tcell.EventKey) *tcell.EventKey { } updateBackgroundColor() transparent = !transparent + transparentDropDown.SetCurrentOption( + IndexOf(strconv.FormatBool(transparent), + []string{"true", "false"})) } return event