From cb3c71a5ebc4be9b9c4e50937f4415068a07729b Mon Sep 17 00:00:00 2001
From: Alexander Schwinn <alexxcons@xfce.org>
Date: Fri, 11 Nov 2022 15:54:46 +0100
Subject: [PATCH] Only show hamburger button when menubar is disabled (Issue
 #934)

---
 thunar/thunar-window.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 3c9ff3d28..d5c68e3b2 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -6355,6 +6355,11 @@ thunar_window_toolbar_toggle_item_visibility (ThunarWindow *window,
   for (gint i = 0; lp != NULL; lp = lp->next, i++)
     {
       GtkWidget *item = lp->data;
+
+      /* visibility of this item is only controlled by 'window->menubar_visible' */
+      if (item == window->location_toolbar_item_view_menubar)
+        continue;
+
       if (index == i)
         {
           gtk_widget_set_visible (item, !gtk_widget_is_visible (item));
-- 
GitLab