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 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();
|
||||||
|
|||||||
@@ -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)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user