mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[v3] Add Get for application instance
This commit is contained in:
parent
1945616328
commit
f3974deb88
1 changed files with 4 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ type EventListener struct {
|
|||
callback func()
|
||||
}
|
||||
|
||||
func Get() *App {
|
||||
return globalApplication
|
||||
}
|
||||
|
||||
func New(appOptions Options) *App {
|
||||
if globalApplication != nil {
|
||||
return globalApplication
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue