summaryrefslogtreecommitdiffstats
path: root/examples/download_progress
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-16 19:14:13 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-16 19:14:13 +0100
commit28a27f08edccd53e06ad693e63b0a62dae921da5 (patch)
treed2a2f51ebc9fddd38771abfbd567522396763468 /examples/download_progress
parent0a24611ccdb9402f89c88fd5f567b9d26e3533c2 (diff)
downloadiced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.gz
iced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.bz2
iced-28a27f08edccd53e06ad693e63b0a62dae921da5.zip
Remove `sandbox` by making `application` more generic :tada:
Diffstat (limited to 'examples/download_progress')
-rw-r--r--examples/download_progress/src/main.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/download_progress/src/main.rs b/examples/download_progress/src/main.rs
index 06ebb9c6..8d7994c8 100644
--- a/examples/download_progress/src/main.rs
+++ b/examples/download_progress/src/main.rs
@@ -4,9 +4,13 @@ use iced::widget::{button, column, container, progress_bar, text, Column};
use iced::{Alignment, Element, Length, Subscription};
pub fn main() -> iced::Result {
- iced::sandbox("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)]