update gemtext error handler

This commit is contained in:
yggverse 2025-03-05 17:57:28 +02:00
parent c8607e151a
commit 33943d37f1
9 changed files with 64 additions and 108 deletions

View file

@ -3,7 +3,6 @@ mod database;
mod error;
mod input;
mod navigation;
mod notice;
mod search;
use super::{Action as ItemAction, BrowserAction, Profile, TabAction, WindowAction};
@ -12,7 +11,6 @@ use content::Content;
use error::Error;
use input::Input;
use navigation::Navigation;
use notice::Notice;
use search::Search;
use sqlite::Transaction;
use std::rc::Rc;
@ -27,7 +25,6 @@ pub struct Page {
pub content: Rc<Content>,
pub input: Rc<Input>,
pub navigation: Rc<Navigation>,
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 +56,6 @@ impl Page {
(window_action, tab_action, item_action),
));
let input = Rc::new(Input::new());
let notice = Rc::new(Notice::new());
// Done
Self {
@ -73,7 +69,6 @@ impl Page {
content,
input,
navigation,
notice,
search,
}
}
@ -104,11 +99,6 @@ impl Page {
self.search.show()
}
/// Toggle `Notice` widget
pub fn notice(&self, title: &str) {
self.notice.show(title)
}
/// Cleanup session for `Self`
pub fn clean(
&self,