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 #123

Merged
merged 16 commits into from
Jul 6, 2023

Conversation

Adanos020
Copy link
Contributor

@Adanos020 Adanos020 commented Jun 13, 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) still need testing. Unfortunately, I don't have easy access to a Mac, so we'll need someone else who does to test this.

@Adanos020
Copy link
Contributor Author

Opening this again because I accidentally closed #122

Copy link
Owner

@PolyMeilex PolyMeilex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, this looks great, just one minor comment.

src/message_dialog.rs Outdated Show resolved Hide resolved
Adanos020 and others added 2 commits June 28, 2023 12:39
Co-authored-by: Bartłomiej Maryńczak <marynczak.bartlomiej@gmail.com>
@PolyMeilex
Copy link
Owner

Thanks!

@PolyMeilex PolyMeilex merged commit 25d879a into PolyMeilex:master Jul 6, 2023
12 checks passed
@repi repi mentioned this pull request Aug 29, 2023
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
3 participants