diff options
| author | pml68 <contact@pml68.dev> | 2025-04-13 11:34:05 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-04-13 11:34:05 +0200 |
| commit | 4308009f15651cac832029d0d590bc4803c5ae62 (patch) | |
| tree | e626e659c744c117f05d63a3a7c4bc98f9c250c4 | |
| parent | feat: add `backdrop` method to dialog (diff) | |
| download | iced_dialog-4308009f15651cac832029d0d590bc4803c5ae62.tar.gz | |
fix: example
| -rw-r--r-- | example/Cargo.toml | 2 | ||||
| -rw-r--r-- | example/src/main.rs | 2 | ||||
| -rw-r--r-- | src/dialog.rs | 2 |
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 { |
