mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
reset notice banner on page update
This commit is contained in:
parent
f7b653f36a
commit
c8607e151a
4 changed files with 24 additions and 14 deletions
|
|
@ -7,7 +7,7 @@ mod notice;
|
|||
mod search;
|
||||
|
||||
use super::{Action as ItemAction, BrowserAction, Profile, TabAction, WindowAction};
|
||||
use adw::{Banner, TabPage};
|
||||
use adw::TabPage;
|
||||
use content::Content;
|
||||
use error::Error;
|
||||
use input::Input;
|
||||
|
|
@ -27,7 +27,7 @@ pub struct Page {
|
|||
pub content: Rc<Content>,
|
||||
pub input: Rc<Input>,
|
||||
pub navigation: Rc<Navigation>,
|
||||
pub notice: Banner,
|
||||
pub notice: Rc<Notice>,
|
||||
pub search: Rc<Search>,
|
||||
// System
|
||||
/// Reference to [TabPage](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.TabPage.html)
|
||||
|
|
@ -59,7 +59,7 @@ impl Page {
|
|||
(window_action, tab_action, item_action),
|
||||
));
|
||||
let input = Rc::new(Input::new());
|
||||
let notice = Banner::notice();
|
||||
let notice = Rc::new(Notice::new());
|
||||
|
||||
// Done
|
||||
Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue