sync
This commit is contained in:
Tsuki 2024-04-25 18:45:52 +08:00
parent e633f34765
commit e8f8050269
2 changed files with 10 additions and 3 deletions

3
rsp.toml Normal file
View File

@ -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"

View File

@ -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<Mutex<Config>> = 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::<AppModel>(());
}