Customize display duration
This commit is contained in:
parent
3c0124bcd0
commit
c60eaf29f9
@ -1 +1,2 @@
|
|||||||
photo_path: "/mnt/c/Users/beaus/Downloads"
|
photo_path: "/mnt/c/Users/beaus/Downloads"
|
||||||
|
duration: 30
|
||||||
@ -47,7 +47,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
display_frame(&provider)?;
|
display_frame(&provider)?;
|
||||||
|
|
||||||
if time.elapsed().as_secs() > 5 {
|
if time.elapsed() > settings.duration {
|
||||||
provider.load_next_image()?;
|
provider.load_next_image()?;
|
||||||
time = Instant::now();
|
time = Instant::now();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user