[ghex] appwin: Fix post-43.alpha regression re: titlebar updates
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] appwin: Fix post-43.alpha regression re: titlebar updates
- Date: Fri, 9 Sep 2022 17:04:25 +0000 (UTC)
commit 6aaad4575e3d1615a88ef8fdda4aa04ac5ddd7f5
Author: Logan Rathbone <poprocks gmail com>
Date: Fri Sep 9 13:02:05 2022 -0400
appwin: Fix post-43.alpha regression re: titlebar updates
src/ghex-application-window.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ghex-application-window.c b/src/ghex-application-window.c
index c0ad592..e7980c4 100644
--- a/src/ghex-application-window.c
+++ b/src/ghex-application-window.c
@@ -387,7 +387,7 @@ close_request_cb (GtkWindow *window,
static void
close_page_finish_helper (GHexApplicationWindow *self, AdwTabView *tab_view, AdwTabPage *page, gboolean
confirm)
{
- if (confirm && adw_tab_view_get_n_pages (tab_view) == 0)
+ if (confirm && adw_tab_view_get_n_pages (tab_view) == 1)
{
enable_main_actions (self, FALSE);
ghex_application_window_set_show_find (self, FALSE);
@@ -397,9 +397,9 @@ close_page_finish_helper (GHexApplicationWindow *self, AdwTabView *tab_view, Adw
ghex_application_window_set_show_converter (self, FALSE);
show_no_file_loaded_label (self);
- update_gui_data (self);
}
adw_tab_view_close_page_finish (tab_view, page, confirm);
+ update_gui_data (self);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]