begin request entry refactory

This commit is contained in:
yggverse 2025-01-26 19:58:24 +02:00
parent 5255708be3
commit e7bd5bbdc6
24 changed files with 351 additions and 849 deletions

View file

@ -32,12 +32,10 @@ impl App {
// Init components
let browser = Rc::new(Browser::build(profile));
// Init events
application.connect_activate({
let browser = browser.clone();
move |_| browser.update()
});
// Prevent startup warning @TODO
application.connect_activate(|_| {});
// Init events
application.connect_startup({
let browser = browser.clone();
let profile = profile.clone();
@ -150,11 +148,7 @@ impl App {
&["<Primary>i"],
),
(
format!(
"{}.{}",
browser.action.id,
browser.action.escape.simple_action.name()
),
format!("{}.{}", browser.action.id, browser.action.escape.name()),
&["Escape"],
),
// Tab actions