Skip to content

Add support for default No button#1875

Merged
leaanthony merged 3 commits into
masterfrom
feature/1871_windows_dialog_defaults
Sep 23, 2022
Merged

Add support for default No button#1875
leaanthony merged 3 commits into
masterfrom
feature/1871_windows_dialog_defaults

Conversation

@leaanthony

@leaanthony leaanthony commented Sep 22, 2022

Copy link
Copy Markdown
Member

Adds support for specifying that the "No" button is default when opening a question dialog on Windows.

Example:

	result, err := runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
		Type:          runtime.QuestionDialog,
		Title:         "Question",
		Message:       "Do you want to continue?",
		DefaultButton: "No",
	})

Fixes #1871

Example: https://github.com/wailsapp/examples/blob/main/default_no_question_dialog/README.md

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 22, 2022

Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4c99a7e
Status: ✅  Deploy successful!
Preview URL: https://0a646de8.wails.pages.dev
Branch Preview URL: https://feature-1871-windows-dialog-.wails.pages.dev

View logs

@leaanthony leaanthony merged commit fd32734 into master Sep 23, 2022
@leaanthony leaanthony deleted the feature/1871_windows_dialog_defaults branch September 23, 2022 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a Question Dialog That Defaults to Cancel in Windows

1 participant