From e8f80502690e4e5045744b54b96748866f5fe42b Mon Sep 17 00:00:00 2001 From: Tsuki Date: Thu, 25 Apr 2024 18:45:52 +0800 Subject: [PATCH] sync sync --- rsp.toml | 3 +++ src/main.rs | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 rsp.toml diff --git a/rsp.toml b/rsp.toml new file mode 100644 index 0000000..24d7198 --- /dev/null +++ b/rsp.toml @@ -0,0 +1,3 @@ +alg_list_repo = "http://192.168.1.70:6020/awesomeradaralgorithms/lts.git" +source_list_loc = "/Users/tsuki/.cache/rsp/lts" +alg_source = "http://192.168.1.70:6020" diff --git a/src/main.rs b/src/main.rs index 48d7d31..1dd97e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,8 @@ #![allow(unused)] #![allow(dead_code)] use gtk::{ - gio::{self}, + gio::{self, ApplicationFlags}, + Application, prelude::SettingsExt, }; @@ -14,14 +15,17 @@ use crate::setting::Config; use components::AppModel; use once_cell::{sync::Lazy as SafeLazy, unsync::Lazy as UnsafeLazy}; use std::sync::Mutex; +use crate::components::AppMsg; static CONFIG: SafeLazy> = SafeLazy::new(|| Mutex::new(Config::from_env().unwrap())); const APP_ID: &str = "org.tsuki.rsproject"; fn main() { // Load GL pointers from epoxy (GL context management library used by GTK). - let relm = relm4::RelmApp::new(APP_ID); - + gtk::init(); + adw::init(); + let application = Application::new(Some(APP_ID), ApplicationFlags::HANDLES_OPEN); + let relm = relm4::RelmApp::from_app(application); initialize_custom_css(); relm.run::(()); }