Use RedrawInterval from config

This commit is contained in:
aditya-K2
2023-04-16 13:01:02 +05:30
parent 93f8bd1c65
commit 5a62d7b447

View File

@@ -254,8 +254,6 @@ func NewApplication() *Application {
updateRoutine()
rectWatcher := func() {
redrawInterval := 300
// Wait Until the ImagePreviewer is drawn
// Ensures that cover art is not drawn before the UI is rendered.
// Ref Issue: #39
@@ -287,7 +285,7 @@ func NewApplication() *Application {
ImgH = _ImgH
coverArt.RefreshState()
}
time.Sleep(time.Millisecond * time.Duration(redrawInterval))
time.Sleep(time.Millisecond * time.Duration(config.Config.RedrawInterval))
}
}()
}