From 780fdd3004e1ca15cbf6e49b99e02e745dddb09f Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 8 Sep 2024 18:15:28 +0300 Subject: [PATCH] toggle close active tab action status on refresh --- src/app/browser/main/tab.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 04d6c72f..edf5bc65 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -52,6 +52,12 @@ void Tab::refresh( tabPage->get_subtitle(), 0 // @TODO ); + + action__tab_close_active->set_enabled( + get_n_pages() > 0 + ); + + // @TODO toggle close all } void Tab::append(