From 7dee9f44241f8f9f26590205485f9f8ab701b807 Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 22 Aug 2024 22:05:42 +0300 Subject: Factor out the post editor UI into a separate component Now it's easy to use the same UI for sending a new post or editing an existing one (by loading it with `?q=source` and then comparing). --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index acb9f66..31d7d24 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use adw::prelude::GtkWindowExt; use relm4::{ComponentParts, ComponentSender, RelmApp, Component, ComponentController}; -use bowl::PostComposerModel; +use bowl::App; use bowl::APPLICATION_ID; @@ -15,7 +15,7 @@ fn main() { log::set_max_level(log::LevelFilter::Debug); let app = RelmApp::new(APPLICATION_ID); - app.run_async::( + app.run_async::( bowl::micropub::Client::new( glib::Uri::parse(&std::env::var("MICROPUB_URI").unwrap(), glib::UriFlags::NONE).unwrap(), std::env::var("MICROPUB_TOKEN").unwrap(), -- cgit 1.4.1