mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
draft auth action
This commit is contained in:
parent
f1b7fc9ac0
commit
fc2baf7845
6 changed files with 61 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ impl Navigation {
|
|||
action: (Rc<BrowserAction>, Rc<WindowAction>, Rc<TabAction>),
|
||||
) -> Self {
|
||||
// Init components
|
||||
let auth = Rc::new(Auth::new(action.1.clone()));
|
||||
let auth = Rc::new(Auth::new(action.2.clone()));
|
||||
let home = Rc::new(Home::new(action.1.clone()));
|
||||
let history = Rc::new(History::new(action.1.clone()));
|
||||
let reload = Rc::new(Reload::new(action.1.clone()));
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
mod widget;
|
||||
|
||||
use widget::Widget;
|
||||
|
||||
use crate::app::browser::window::Action;
|
||||
use crate::app::browser::window::tab::item::Action;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub struct Auth {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::app::browser::window::Action;
|
||||
use crate::app::browser::window::tab::item::Action;
|
||||
use gtk::{
|
||||
prelude::{ButtonExt, WidgetExt},
|
||||
Button,
|
||||
|
|
@ -19,7 +19,7 @@ impl Widget {
|
|||
.sensitive(false)
|
||||
.build();
|
||||
|
||||
// Init events @TODO
|
||||
// Init events @TODO dialog window required
|
||||
// gobject.connect_clicked(move |_| action.auth().activate());
|
||||
|
||||
// Return activated `Self`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue