mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
move identity feature to request area
This commit is contained in:
parent
78957ff85b
commit
2dc6154d54
32 changed files with 59 additions and 84 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue