refactor(dialog): handle okLabel in js side (#3295)

* refactor(dialog): handle `okLabel` in js side

* Allow unused instead of `cfg(desktop)`
This commit is contained in:
Tony
2026-03-01 23:22:25 +08:00
committed by GitHub
parent 759c22758e
commit 3f21f39584
5 changed files with 22 additions and 33 deletions
+2 -2
View File
@@ -247,8 +247,8 @@ impl<R: Runtime> MessageDialogBuilder<R> {
dialog,
title: title.into(),
message: message.into(),
kind: Default::default(),
buttons: Default::default(),
kind: MessageDialogKind::default(),
buttons: MessageDialogButtons::default(),
#[cfg(desktop)]
parent: None,
}