move identity feature to request area

This commit is contained in:
yggverse 2025-01-29 15:13:35 +02:00
parent 78957ff85b
commit 2dc6154d54
32 changed files with 59 additions and 84 deletions

View file

@ -1,13 +1,13 @@
mod history;
mod home;
mod ident;
mod identity;
mod load;
mod reload;
use gtk::gio::SimpleAction;
use history::History;
use home::Home;
use ident::Ident;
use identity::Identity;
use load::Load;
use reload::Reload;
@ -17,7 +17,7 @@ use std::rc::Rc;
pub struct Action {
pub history: Rc<History>,
pub home: SimpleAction,
pub ident: Rc<Ident>,
pub identity: SimpleAction,
pub load: Rc<Load>,
pub reload: SimpleAction,
}
@ -33,9 +33,9 @@ impl Action {
/// Create new `Self`
pub fn new() -> Self {
let ident = Rc::new(Ident::new());
let load = Rc::new(Load::new());
let home = SimpleAction::home();
let identity = SimpleAction::identity();
let load = Rc::new(Load::new());
let reload = SimpleAction::reload();
let history = Rc::new(History::build({
@ -45,10 +45,10 @@ impl Action {
Self {
history,
reload,
home,
ident,
identity,
load,
reload,
}
}
}