mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[windows-x] Startup/Shutdown -> OnStartup/OnShutdown
This commit is contained in:
@@ -222,6 +222,10 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
||||
tags.Add(options.WebView2Strategy)
|
||||
}
|
||||
|
||||
if options.Mode == Production {
|
||||
tags.Add("production")
|
||||
}
|
||||
|
||||
tags.Deduplicate()
|
||||
|
||||
// Add the output type build tag
|
||||
|
||||
@@ -32,8 +32,9 @@ type App struct {
|
||||
Menu *menu.Menu
|
||||
Logger logger.Logger `json:"-"`
|
||||
LogLevel logger.LogLevel
|
||||
Startup func(ctx context.Context) `json:"-"`
|
||||
Shutdown func() `json:"-"`
|
||||
OnStartup func(ctx context.Context) `json:"-"`
|
||||
OnDomReady func(ctx context.Context) `json:"-"`
|
||||
OnShutdown func(ctx context.Context) `json:"-"`
|
||||
Bind []interface{}
|
||||
|
||||
//ContextMenus []*menu.ContextMenu
|
||||
|
||||
Reference in New Issue
Block a user