Skip to content

Commit

Permalink
Don't add close button on popout
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Sep 10, 2024
1 parent bcf6566 commit 6290077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen/dashboard/pane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6290077

Please sign in to comment.