Fine grained animation delays.
This commit is contained in:
parent
a6dc5cbe18
commit
dd18765a80
|
@ -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("")
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user