From 6290077486c693eb680eccc59687db8a8f9d869f Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Tue, 10 Sep 2024 13:06:31 -0700 Subject: [PATCH] Don't add close button on popout --- src/screen/dashboard/pane.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen/dashboard/pane.rs b/src/screen/dashboard/pane.rs index 6aaef8792..6e712b44a 100644 --- a/src/screen/dashboard/pane.rs +++ b/src/screen/dashboard/pane.rs @@ -262,7 +262,7 @@ impl TitleBar { } // Add delete as long as it's not a single empty buffer - if !(panes == 1 && matches!(buffer, Buffer::Empty)) { + if !(is_popout || panes == 1 && matches!(buffer, Buffer::Empty)) { let close_button = button(center(icon::cancel())) .padding(5) .width(22)