Skip to content

Stop properties panel from auto-opening on file selection#7

Merged
darkliquid merged 2 commits intomainfrom
copilot/update-properties-panel-behavior
Mar 16, 2026
Merged

Stop properties panel from auto-opening on file selection#7
darkliquid merged 2 commits intomainfrom
copilot/update-properties-panel-behavior

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 16, 2026

The properties panel would automatically slide open whenever a file was selected, ignoring the user's panel state. It should only open/close via explicit user interaction.

Change

  • BrowserWindow.qmlselectFile(): Removed showRightSidebar = !!fileData, which was the sole cause of the auto-open behaviour.
// Before
function selectFile(fileData) {
    selectedFile     = fileData
    selectedFileMeta = null
    showRightSidebar = !!fileData   // ← forced panel open on every selection
    ...
}

// After
function selectFile(fileData) {
    selectedFile     = fileData
    selectedFileMeta = null
    ...
}

Manual toggle (PROPERTIES strip click) and the navigateTo() close-on-navigate behaviour are unchanged.

Original prompt

Update the behavior of the properties panel so that it no longer slides out automatically. The panel should remain closed by default unless explicitly opened by the user.

Repository: darkliquid/tilbo

Expected outcome:

  • Identify the code path that causes the properties panel to auto-open / slide out automatically.
  • Change the behavior so automatic slide-out no longer happens.
  • Preserve existing manual open/close interactions for the properties panel.
  • Avoid regressions in related UI behavior.

Please implement the change and open a pull request with the fix.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: The properties panel should no longer slide out automatically.

Assistant: Which repository should I make this change in? If you want, I can also help locate the code path that controls the properties panel behavior once you share owner/repo.

User: Tilbo

Assistant: Please provide the full repository in owner/repo format.

For example: your-org/Tilbo

If you want me to inspect the code, I can then look for where the properties panel auto-opens and help change it.

User: darkliquid/tilbo

Assistant: We’re waiting for your response to the approval dialog before I can continue.

This pull request was created from Copilot chat.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: darkliquid <31256+darkliquid@users.noreply.github.com>
Copilot AI changed the title [WIP] Update properties panel to remain closed by default Stop properties panel from auto-opening on file selection Mar 16, 2026
Copilot AI requested a review from darkliquid March 16, 2026 18:10
@darkliquid darkliquid marked this pull request as ready for review March 16, 2026 18:14
Copilot AI review requested due to automatic review settings March 16, 2026 18:14
@darkliquid darkliquid merged commit 6a2f8e4 into main Mar 16, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the code path that forced the properties sidebar to open whenever a file is selected in the Quickshell browser window, ensuring the panel only opens/closes via explicit user interaction (and still closes on navigation).

Changes:

  • Removed the selectFile() assignment that set showRightSidebar based on selection state.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants