Show local posts and communities by default
This commit is contained in:
parent
2f4485620f
commit
2ac8c98e87
|
@ -77,7 +77,7 @@ impl SimpleComponent for PostsPage {
|
|||
let posts = FactoryVecDeque::new(gtk::Box::default(), sender.output_sender());
|
||||
let model = Self {
|
||||
posts,
|
||||
posts_type: ListingType::Subscribed,
|
||||
posts_type: ListingType::Local,
|
||||
posts_page: 1,
|
||||
};
|
||||
let posts_box = model.posts.widget();
|
||||
|
|
|
@ -466,7 +466,7 @@ impl SimpleComponent for App {
|
|||
AppMsg::OpenPosts => self
|
||||
.posts_page
|
||||
.sender()
|
||||
.emit(PostsPageInput::FetchPosts(ListingType::Subscribed, true)),
|
||||
.emit(PostsPageInput::FetchPosts(ListingType::Local, true)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue