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
+2
View File
@@ -59,6 +59,8 @@ pub enum MessageDialogButtons {
Ok,
/// 2 buttons `Ok` and `Cancel` with OS default dialog texts
OkCancel,
/// 2 buttons `Yes` and `No` with OS default dialog texts
YesNo,
/// A single `Ok` button with custom text
OkCustom(String),
/// 2 buttons `Ok` and `Cancel` with custom texts