diff options
| author | 2024-06-19 01:53:40 +0200 | |
|---|---|---|
| committer | 2024-06-19 01:53:40 +0200 | |
| commit | 341c9a3c12aa9d327ef1d8f168ea0adb9b5ad10b (patch) | |
| tree | 6a37f29352b1768911b6d42c220f22ebecc202ee /examples/download_progress | |
| parent | 368b15f70896b387ae3f072e807b289b36b2d103 (diff) | |
| download | iced-341c9a3c12aa9d327ef1d8f168ea0adb9b5ad10b.tar.gz iced-341c9a3c12aa9d327ef1d8f168ea0adb9b5ad10b.tar.bz2 iced-341c9a3c12aa9d327ef1d8f168ea0adb9b5ad10b.zip | |
Introduce `daemon` API and unify shell runtimes
Diffstat (limited to '')
| -rw-r--r-- | examples/download_progress/src/main.rs | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/examples/download_progress/src/main.rs b/examples/download_progress/src/main.rs index 7974d5a0..d91e5eab 100644 --- a/examples/download_progress/src/main.rs +++ b/examples/download_progress/src/main.rs @@ -4,9 +4,13 @@ use iced::widget::{button, center, column, progress_bar, text, Column};  use iced::{Alignment, Element, Subscription};  pub fn main() -> iced::Result { -    iced::program("Download Progress - Iced", Example::update, Example::view) -        .subscription(Example::subscription) -        .run() +    iced::application( +        "Download Progress - Iced", +        Example::update, +        Example::view, +    ) +    .subscription(Example::subscription) +    .run()  }  #[derive(Debug)] | 
