mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-20 02:49:30 +08:00
[v3 windows] improve main thread calls
This commit is contained in:
parent
72ec10b181
commit
ae9b158b04
@ -43,6 +43,10 @@ type windowsApp struct {
|
||||
currentWindowID uint
|
||||
}
|
||||
|
||||
func (m *windowsApp) isOnMainThread() bool {
|
||||
return m.mainThreadID == w32.GetCurrentThreadId()
|
||||
}
|
||||
|
||||
func (m *windowsApp) GetFlags(options Options) map[string]any {
|
||||
if options.Flags == nil {
|
||||
options.Flags = make(map[string]any)
|
||||
|
Loading…
Reference in New Issue
Block a user