aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-13 11:34:05 +0200
committerpml68 <contact@pml68.dev>2025-04-13 11:34:05 +0200
commit4308009f15651cac832029d0d590bc4803c5ae62 (patch)
treee626e659c744c117f05d63a3a7c4bc98f9c250c4
parentfeat: add `backdrop` method to dialog (diff)
downloadiced_dialog-4308009f15651cac832029d0d590bc4803c5ae62.tar.gz
fix: example
-rw-r--r--example/Cargo.toml2
-rw-r--r--example/src/main.rs2
-rw-r--r--src/dialog.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/example/Cargo.toml b/example/Cargo.toml
index 7bc22dc..8a72e1c 100644
--- a/example/Cargo.toml
+++ b/example/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "example"
+name = "dialog_example"
version = "0.0.1"
edition = "2024"
diff --git a/example/src/main.rs b/example/src/main.rs
index 0234319..6b0a363 100644
--- a/example/src/main.rs
+++ b/example/src/main.rs
@@ -18,7 +18,7 @@ enum Message {
}
fn main() -> iced::Result {
- iced::run("Dialog Example", State::update, State::view)
+ iced::run(State::update, State::view)
}
impl State {
diff --git a/src/dialog.rs b/src/dialog.rs
index 0f70c0a..dba27f7 100644
--- a/src/dialog.rs
+++ b/src/dialog.rs
@@ -144,7 +144,7 @@ where
}
/// Extends the [`Dialog`] with the given buttons.
- pub fn extend(
+ pub fn extend_buttons(
self,
buttons: impl IntoIterator<Item = Element<'a, Message, Theme, Renderer>>,
) -> Self {