Show local posts and communities by default

This commit is contained in:
Bnyro 2023-07-11 10:33:51 +02:00
parent 2f4485620f
commit 2ac8c98e87
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ impl SimpleComponent for PostsPage {
let posts = FactoryVecDeque::new(gtk::Box::default(), sender.output_sender()); let posts = FactoryVecDeque::new(gtk::Box::default(), sender.output_sender());
let model = Self { let model = Self {
posts, posts,
posts_type: ListingType::Subscribed, posts_type: ListingType::Local,
posts_page: 1, posts_page: 1,
}; };
let posts_box = model.posts.widget(); let posts_box = model.posts.widget();

View File

@ -466,7 +466,7 @@ impl SimpleComponent for App {
AppMsg::OpenPosts => self AppMsg::OpenPosts => self
.posts_page .posts_page
.sender() .sender()
.emit(PostsPageInput::FetchPosts(ListingType::Subscribed, true)), .emit(PostsPageInput::FetchPosts(ListingType::Local, true)),
} }
} }
} }