From 71f7cbcd2b30d56419f5f057c5b710a40b084080 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 4 Nov 2024 21:19:13 +0200 Subject: [PATCH] update comments --- src/app/browser/window/tab/widget.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/widget.rs b/src/app/browser/window/tab/widget.rs index a2abed02..5a9c5855 100644 --- a/src/app/browser/window/tab/widget.rs +++ b/src/app/browser/window/tab/widget.rs @@ -33,18 +33,20 @@ impl Widget { // Actions /// Close page at given `position`, `None` to close selected page (if available) + /// * this action does not close pinned pages pub fn close(&self, position: Option) { if let Some(page) = self.page(position) { self.gobject.close_page(&page); } } - /// Close all pages, including selected one + /// Close all pages + /// * this action does not close pinned pages pub fn close_all(&self) { // @TODO skip pinned or make confirmation alert (GTK>=4.10) if let Some(selected_page) = self.gobject.selected_page() { self.gobject.close_other_pages(&selected_page); - self.close(None); + self.gobject.close_page(&selected_page); } }