From a2c43894984001c1fa471b0f21898d1ef6763232 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 28 Sep 2024 02:27:34 +0300 Subject: [PATCH] fix actions list --- src/browser.rs | 2 +- src/browser/main.rs | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/browser.rs b/src/browser.rs index 292c8ecc..f939768b 100644 --- a/src/browser.rs +++ b/src/browser.rs @@ -52,7 +52,7 @@ impl Browser { &action_tab_pin, )); - let main = Arc::new(Main::new(&action_debug, &action_quit, &action_update)); + let main = Arc::new(Main::new(&action_tab_page_reload, &action_update)); // Init widget let widget = ApplicationWindow::builder() diff --git a/src/browser/main.rs b/src/browser/main.rs index f0726192..654b73d2 100644 --- a/src/browser/main.rs +++ b/src/browser/main.rs @@ -13,20 +13,13 @@ pub struct Main { impl Main { // Construct - pub fn new( - action_debug: &SimpleAction, - action_quit: &SimpleAction, - action_update: &SimpleAction, - ) -> Self { + pub fn new(action_tab_page_reload: &SimpleAction, action_update: &SimpleAction) -> Self { // Init components let tab = Arc::new(Tab::new()); - tab.activate(tab.clone()); + tab.append(Some(GString::from("gemini://geminiprotocol.net/")), true); // demo tab @TODO replace with session restore feature - // Append demo tab @TODO - tab.append(Some(GString::from("gemini://geminiprotocol.net/")), true); - - // Extras + // GTK let widget = Box::builder().orientation(Orientation::Vertical).build(); widget.append(tab.widget());