sync
sync
This commit is contained in:
parent
e633f34765
commit
e8f8050269
3
rsp.toml
Normal file
3
rsp.toml
Normal 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"
|
||||
10
src/main.rs
10
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<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>(());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user