Show local posts and communities by default
This commit is contained in:
@@ -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)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user