mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 windows] improve main thread calls
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user