summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-22 22:05:42 +0300
committerVika <vika@fireburn.ru>2024-08-22 23:13:03 +0300
commit7dee9f44241f8f9f26590205485f9f8ab701b807 (patch)
treeb13f3aac34edb33815fb5d5050526336b9e1bbb4 /src/main.rs
parentf164ee83342d025204897018b15141de6e1ca93d (diff)
downloadbowl-7dee9f44241f8f9f26590205485f9f8ab701b807.tar.zst
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).
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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::<PostComposerModel>(
+    app.run_async::<App>(
         bowl::micropub::Client::new(
             glib::Uri::parse(&std::env::var("MICROPUB_URI").unwrap(), glib::UriFlags::NONE).unwrap(),
             std::env::var("MICROPUB_TOKEN").unwrap(),