Added ability to close non-primary tabs involved in a split view #435

Merged
jarrah31 merged 1 commits from feature/splitview_tab_closing into dev-1.8.1 2025-11-10 19:31:23 +00:00
jarrah31 commented 2025-11-10 19:18:21 +00:00 (Migrated from github.com)

Overview

When managing multiple tabs involved in a split view, I found myself wanting to fully close specific tabs rather than just un-splitting them. I therefore enabled the ability to close tabs involved in the split view but still prevent the primary tab from being closed.

Changes Made

The code already had the capability to remove a session from split view when being closed so all I had to do was remove isSplit from the following line in TopNavbar.tsx

              (isSplitScreenActive && isActive) || isSplit || isHome;

Related Issues

https://github.com/Termix-SSH/Support/issues/258

Checklist

  • Code follows project style guidelines
  • Supports mobile and desktop UI/app (N/A)
  • I have read Contributing.md
# Overview When managing multiple tabs involved in a split view, I found myself wanting to fully close specific tabs rather than just un-splitting them. I therefore enabled the ability to close tabs involved in the split view but still prevent the primary tab from being closed. # Changes Made The code already had the capability to remove a session from split view when being closed so all I had to do was remove `isSplit` from the following line in `TopNavbar.tsx` ``` (isSplitScreenActive && isActive) || isSplit || isHome; ``` # Related Issues https://github.com/Termix-SSH/Support/issues/258 # Checklist - [x] Code follows project style guidelines - [ ] Supports mobile and desktop UI/app (N/A) - [x] I have read [Contributing.md](https://github.com/Termix-SSH/Termix/blob/main/CONTRIBUTING.md)
Sign in to join this conversation.