Bring the Wails desktop shell to feature parity with the CLI for provider and alias management while keeping the browser fallback working. Wire tray, notifications, autostart, and GUI warnings so desktop flows behave predictably.
43 lines
653 B
Go
43 lines
653 B
Go
//go:build !desktop_wails
|
|
|
|
package desktop
|
|
|
|
import "context"
|
|
|
|
type desktopNotification struct {
|
|
ID string
|
|
Title string
|
|
Body string
|
|
}
|
|
|
|
func hideWindow(ctx context.Context) error {
|
|
_ = ctx
|
|
return nil
|
|
}
|
|
|
|
func showWindow(ctx context.Context) error {
|
|
_ = ctx
|
|
return nil
|
|
}
|
|
|
|
func quitWindow(ctx context.Context) error {
|
|
_ = ctx
|
|
return nil
|
|
}
|
|
|
|
func initDesktopNotifications(ctx context.Context) error {
|
|
_ = ctx
|
|
return nil
|
|
}
|
|
|
|
func desktopNotificationsAvailable(ctx context.Context) bool {
|
|
_ = ctx
|
|
return false
|
|
}
|
|
|
|
func sendDesktopNotification(ctx context.Context, notification desktopNotification) error {
|
|
_ = ctx
|
|
_ = notification
|
|
return nil
|
|
}
|