Skip to content

fix(windows): avoid dead project switcher in new-window mode - #99

Merged
1lck merged 4 commits into
1lck:preview/0.3.0from
Mucheen:fix/project-switcher-new-window
Aug 16, 2026
Merged

fix(windows): avoid dead project switcher in new-window mode#99
1lck merged 4 commits into
1lck:preview/0.3.0from
Mucheen:fix/project-switcher-new-window

Conversation

@Mucheen

@Mucheen Mucheen commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Hide the activity-bar project switcher when Open Projects In New Window is enabled.
  • Keep the existing Open project... entry available for opening projects in a separate window.
  • Add regression coverage for the project-switcher visibility rule.

Root cause

The default Windows setting enables opening projects in a new window. In that mode, activity-bar project switching is intentionally disabled by main-sidebar.tsx, but the project switcher control was still rendered. Selecting a project therefore called a handler that returned immediately, making the UI appear unresponsive.

Conflict resolution

Merged the latest preview/0.3.0 into this branch and resolved the main-sidebar.tsx import conflict by retaining the upstream sidebar simplification together with the project-switcher visibility rule.

Verification

  • bun test (12 passed)
  • bun run typecheck
  • bun run build
  • bun run lint (passes; existing warnings remain in src/mocks/tauri-api-mock.ts)

This PR does not include the pre-existing configuration changes or local planning/build artifacts in the worktree.

@Mucheen
Mucheen requested a review from 1lck as a code owner August 15, 2026 16:05
Mucheen and others added 2 commits August 16, 2026 09:27
…switcher-new-window

# Conflicts:
#	windows/tauri/src/features/layout/components/sidebar/main-sidebar.tsx
@1lck
1lck merged commit 6fd3ab3 into 1lck:preview/0.3.0 Aug 16, 2026
5 of 6 checks passed
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.

2 participants