Fine grained animation delays.

This commit is contained in:
Greg 2019-09-06 16:55:14 -04:00
parent a6dc5cbe18
commit dd18765a80

View File

@ -296,11 +296,11 @@ func eventLoop() {
overlay.Background = darkgray overlay.Background = darkgray
w.Invalidate() w.Invalidate()
go func() { go func() {
time.Sleep(time.Second * time.Duration(fade1a)) time.Sleep(time.Millisecond * time.Duration(fade1a*1000))
animOn() animOn()
}() }()
go func() { go func() {
time.Sleep(time.Second * time.Duration(Config.ClearDelay)) time.Sleep(time.Millisecond * time.Duration(Config.ClearDelay*1000))
log(Info, "clearing clipboard") log(Info, "clearing clipboard")
passgo.Clip("") passgo.Clip("")
}() }()