Skip to content

Commit

Permalink
View selfies
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Apr 2, 2024
1 parent 868bb66 commit 67f6cd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use self::components::{
all_photos::AllPhotosOutput, month_photos::MonthPhotos, month_photos::MonthPhotosInput,
month_photos::MonthPhotosOutput, one_photo::OnePhoto, one_photo::OnePhotoInput,
year_photos::YearPhotos, year_photos::YearPhotosOutput,
selfie_photos::SelfiePhotos,
selfie_photos::SelfiePhotos, selfie_photos::SelfiePhotosOutput,
};

mod background;
Expand Down Expand Up @@ -331,7 +331,9 @@ impl SimpleComponent for App {

let selfie_photos = SelfiePhotos::builder()
.launch(repo.clone())
.detach();
.forward(sender.input_sender(), |msg| match msg {
SelfiePhotosOutput::PhotoSelected(id) => AppMsg::ViewPhoto(id),
});

let about_dialog = AboutDialog::builder()
.transient_for(&root)
Expand Down

0 comments on commit 67f6cd1

Please sign in to comment.