mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-18 07:58:16 +08:00
fyne 2.6.1 update, make all gui threadsafe
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
|
||||
// getGlfwWindow returns the glfw.Window pointer from a fyne.Window.
|
||||
// very unsafe and ugly hacks. but it works.
|
||||
// todo: replace with LifeCycle https://github.com/fyne-io/fyne/issues/4483
|
||||
func getGlfwWindow(window fyne.Window) *glfw.Window {
|
||||
rv := reflect.ValueOf(window)
|
||||
if rv.Type().String() != "*glfw.window" {
|
||||
|
||||
Reference in New Issue
Block a user