From 2ac8c98e8783aaa0f64c3c0590879860717c0a43 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 11 Jul 2023 10:33:51 +0200 Subject: [PATCH] Show local posts and communities by default --- src/components/posts_page.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/posts_page.rs b/src/components/posts_page.rs index cd850d6..704bd79 100644 --- a/src/components/posts_page.rs +++ b/src/components/posts_page.rs @@ -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(); diff --git a/src/main.rs b/src/main.rs index 0a99eee..00c08a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)), } } }