Skip to content

Table selection inconsistently replaces tab vs opens a new tab #1348

Closed

Description

@datlechin

What happened?

The first table selection replaces the current window content. After a second tab is added, every later table selection opens a new tab instead of replacing the active one. The behavior should be predictable.

Steps to reproduce

  1. Open a connection, click a table (replaces current window)
  2. Add a new tab
  3. Click another table
  4. It opens yet another new tab instead of replacing the active tab

Expected behavior

Table selection follows one consistent rule. Single-click reuses/replaces the active tab (preview style); only an explicit action opens a new tab.

Code pointer

TablePro/Views/Main/Extensions/MainContentCoordinator+Navigation.swift openTableTab. The preview-vs-new-tab branch changes after the first extra tab is created. See the tab replacement guard noted in CLAUDE.md.

Database type

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions