mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 13:58:05 -05:00
Use config.RedrawInterval to draw context menu
This commit is contained in:
@@ -3,6 +3,7 @@ package ui
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/aditya-K2/gspt/config"
|
||||
"github.com/gdamore/tcell/v2"
|
||||
"github.com/rivo/tview"
|
||||
)
|
||||
@@ -79,7 +80,7 @@ func (m *Root) AddCenteredWidget(t CenteredWidget) {
|
||||
t.ContentHandler()
|
||||
|
||||
resizeHandler := func() {
|
||||
dur := 500
|
||||
dur := config.Config.RedrawInterval
|
||||
tck := time.NewTicker(time.Duration(dur) * time.Millisecond)
|
||||
go func() {
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user