1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

fix: enable default context menu

This commit is contained in:
Ash Keel 2023-11-05 12:51:25 +01:00
parent 4eaf966c4f
commit 24f843f230
No known key found for this signature in database
GPG key ID: 53A9E9A6035DD109

View file

@ -133,9 +133,10 @@ func cliMain(ctx *cli.Context) error {
AssetServer: &assetserver.Options{ AssetServer: &assetserver.Options{
Assets: frontend, Assets: frontend,
}, },
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1}, EnableDefaultContextMenu: true,
OnStartup: app.startup, BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnShutdown: app.stop, OnStartup: app.startup,
OnShutdown: app.stop,
OnBeforeClose: func(ctx context.Context) (prevent bool) { OnBeforeClose: func(ctx context.Context) (prevent bool) {
dialog, err := runtime.MessageDialog(ctx, runtime.MessageDialogOptions{ dialog, err := runtime.MessageDialog(ctx, runtime.MessageDialogOptions{
Type: runtime.QuestionDialog, Type: runtime.QuestionDialog,