mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 08:31:47 +08:00
16 lines
277 B
Go
16 lines
277 B
Go
// +build !experimental
|
|
|
|
package system
|
|
|
|
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()")
|
|
}
|