fix(dialog): ask and confirm not using system button texts (#1910)

* Fix `ask`'s button texts being ok and cancel

* Update change file
This commit is contained in:
Tony
2024-10-20 19:48:45 +08:00
committed by GitHub
parent 44c50c1275
commit 2302c2db1c
7 changed files with 40 additions and 26 deletions
+1
View File
@@ -112,6 +112,7 @@ impl From<MessageDialogButtons> for rfd::MessageButtons {
match value {
MessageDialogButtons::Ok => Self::Ok,
MessageDialogButtons::OkCancel => Self::OkCancel,
MessageDialogButtons::YesNo => Self::YesNo,
MessageDialogButtons::OkCustom(ok) => Self::OkCustom(ok),
MessageDialogButtons::OkCancelCustom(ok, cancel) => Self::OkCancelCustom(ok, cancel),
}