mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
kataras/go-events@v0.0.3 Once workaround.
This commit is contained in:
parent
6d2ba7b640
commit
c793ff1ff6
1 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,12 @@ func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) bool {
|
|||
|
||||
finished := make(chan bool)
|
||||
drop.Emmiter.Once("finish", func(payload ...any) {
|
||||
finished <- payload[0].(bool)
|
||||
b, ok := payload[0].(bool)
|
||||
// workaround until https://github.com/kataras/go-events/pull/8 is merged
|
||||
if !ok {
|
||||
b = (payload[0].([]any))[0].(bool)
|
||||
}
|
||||
finished <- b
|
||||
})
|
||||
|
||||
manager.ResetKeys()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue