mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3] Add Get for application instance
This commit is contained in:
@@ -38,6 +38,10 @@ type EventListener struct {
|
||||
callback func()
|
||||
}
|
||||
|
||||
func Get() *App {
|
||||
return globalApplication
|
||||
}
|
||||
|
||||
func New(appOptions Options) *App {
|
||||
if globalApplication != nil {
|
||||
return globalApplication
|
||||
|
||||
Reference in New Issue
Block a user