Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Yes/No/Cancel buttons #122

Closed
wants to merge 0 commits into from

Conversation

Adanos020
Copy link
Contributor

@Adanos020 Adanos020 commented Jun 12, 2023

Fixes #81

I based this off of this fork: https://github.com/zphixon/rfd

The Yes/No/Cancel provided by the OS seem to work fine on Linux and macOS, however:

  • Didn't compile on Windows,
  • There was no support for custom text in the 3 buttons.

I addressed both of these issues and updated the documentation of MessageDialog accordingly.

Tested on Windows and Linux (GTK3).

WASM, macOS and Linux (XDG) need testing.

@Adanos020
Copy link
Contributor Author

Looks like I forgot about WASM, will investigate that soon.

@Adanos020 Adanos020 force-pushed the yes-no-cancel branch 4 times, most recently from 6acebb7 to a1e3df9 Compare June 12, 2023 22:20
@Adanos020
Copy link
Contributor Author

I fixed all compile errors. There's still one failing GitHub Action for some reason, but it seems unrelated to my changes.

@PolyMeilex
Copy link
Owner

Cargo deny CI step got fixed, should works as expected after rebase

@Adanos020
Copy link
Contributor Author

Adanos020 commented Jun 13, 2023

Conflicts resolved and merged.

Edit: I messed this up, undoing.

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.

Have more buttons in MessageDialog
2 participants