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:
parent
4eaf966c4f
commit
24f843f230
1 changed files with 4 additions and 3 deletions
7
main.go
7
main.go
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue