mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[windows-x] Refactor runtime again
This commit is contained in:
15
v2/pkg/runtime/runtime.go
Normal file
15
v2/pkg/runtime/runtime.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// +build !experimental
|
||||
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/wailsapp/wails/v2/internal/servicebus"
|
||||
)
|
||||
|
||||
// Quit the application
|
||||
func Quit(ctx context.Context) {
|
||||
bus := servicebus.ExtractBus(ctx)
|
||||
// Start shutdown of Wails
|
||||
bus.Publish("quit", "runtime.Quit()")
|
||||
}
|
||||
Reference in New Issue
Block a user