mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 13:58:05 -05:00
Use RedrawInterval from config
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user