Skip to content

Add setting to control server tab auto-focus#79

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/auto-focus-server-tab-setting
Feb 16, 2026
Merged

Add setting to control server tab auto-focus#79
erikdarlingdata merged 1 commit intodevfrom
feature/auto-focus-server-tab-setting

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Adds FocusServerTabOnClick boolean user preference (default: true)
  • When disabled, clicking a server card in Overview creates the tab without switching to it
  • Clicking an already-open server tab always focuses it regardless of setting
  • New "Navigation" section in Settings > General with checkbox

Closes #71

Changes

  • Dashboard/Models/UserPreferences.cs — new FocusServerTabOnClick property
  • Dashboard/MainWindow.xaml.cs — conditional focus in OpenServerTab()
  • Dashboard/SettingsWindow.xaml — checkbox under new Navigation section
  • Dashboard/SettingsWindow.xaml.cs — load/save preference

Test Plan

  • Builds clean (0 warnings, 0 errors)
  • With setting ON (default): clicking a server card focuses the new tab
  • With setting OFF: clicking a server card creates tab but stays on current view
  • Clicking an already-open server always focuses it regardless of setting
  • Setting persists across app restarts

Generated with Claude Code

When disabled, clicking a server card in Overview creates the tab
without switching away from the current view. Existing-tab clicks
always focus regardless of setting. Default is true (current behavior).

Closes #71

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 5427618 into dev Feb 16, 2026
2 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/auto-focus-server-tab-setting branch February 20, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant