diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/main.rs b/src/main.rs index 31d7d24..a12fe60 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,3 @@ -use adw::prelude::GtkWindowExt; -use relm4::{ComponentParts, ComponentSender, RelmApp, Component, ComponentController}; - -use bowl::App; - -use bowl::APPLICATION_ID; - static GLIB_LOGGER: glib::GlibLogger = glib::GlibLogger::new( glib::GlibLoggerFormat::Plain, glib::GlibLoggerDomain::CrateTarget, @@ -14,11 +7,7 @@ fn main() { log::set_logger(&GLIB_LOGGER).unwrap(); log::set_max_level(log::LevelFilter::Debug); - let app = RelmApp::new(APPLICATION_ID); - 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(), - ) - ); + let app = relm4::RelmApp::new(bowl::APPLICATION_ID); + + app.run_async::<bowl::App>(()); } |