2024-11-08 06:47:58 +02:00
|
|
|
mod action;
|
2024-10-02 02:14:00 +03:00
|
|
|
mod app;
|
2024-11-08 07:46:25 +02:00
|
|
|
mod profile;
|
2024-09-18 20:33:29 +03:00
|
|
|
|
2024-11-08 07:46:25 +02:00
|
|
|
use crate::profile::Profile;
|
2024-10-02 02:14:00 +03:00
|
|
|
use app::App;
|
2024-11-08 07:46:25 +02:00
|
|
|
use gtk::glib::ExitCode;
|
|
|
|
use std::rc::Rc;
|
2024-09-21 20:48:12 +03:00
|
|
|
|
2024-10-03 19:46:13 +03:00
|
|
|
const VENDOR: &str = "YGGverse";
|
2024-11-08 07:46:25 +02:00
|
|
|
const APP_ID: &str = "Yoda";
|
2024-10-11 22:57:35 +03:00
|
|
|
const BRANCH: &str = "master";
|
2024-10-03 19:46:13 +03:00
|
|
|
|
2024-09-30 02:00:14 +03:00
|
|
|
fn main() -> ExitCode {
|
2024-10-03 15:38:34 +03:00
|
|
|
match gtk::init() {
|
2024-11-08 07:46:25 +02:00
|
|
|
Ok(_) => App::new(Rc::new(Profile::new(
|
|
|
|
VENDOR,
|
|
|
|
APP_ID,
|
|
|
|
BRANCH,
|
|
|
|
format!(
|
|
|
|
"{}.{}",
|
|
|
|
env!("CARGO_PKG_VERSION_MAJOR"),
|
|
|
|
env!("CARGO_PKG_VERSION_MINOR")
|
|
|
|
)
|
|
|
|
.as_str(),
|
|
|
|
)))
|
|
|
|
.run(),
|
2024-10-03 15:38:34 +03:00
|
|
|
Err(_) => ExitCode::FAILURE,
|
|
|
|
}
|
2024-09-20 18:02:10 +03:00
|
|
|
}
|