mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
[windows-x] Startup/Shutdown -> OnStartup/OnShutdown
This commit is contained in:
@@ -27,7 +27,7 @@ type Runtime struct {
|
||||
//ctx
|
||||
ctx context.Context
|
||||
|
||||
// Startup Hook
|
||||
// OnStartup Hook
|
||||
startupOnce sync.Once
|
||||
|
||||
// Service bus
|
||||
@@ -66,7 +66,7 @@ func (r *Runtime) Start() error {
|
||||
|
||||
// Spin off a go routine
|
||||
go func() {
|
||||
defer r.logger.Trace("Shutdown")
|
||||
defer r.logger.Trace("OnShutdown")
|
||||
for {
|
||||
select {
|
||||
case hooksMessage := <-r.hooksChannel:
|
||||
|
||||
Reference in New Issue
Block a user