Skip to content

Conversation

@YeldhamDev
Copy link
Member

This PR tackles the same objective as #113454 but from another approach: it makes so that the bottom dock follows the Commit dock's state instead of being its own thing. That means that it can't be closed directly, but closes if the Commit dock is closed.

Some other changes were necessary:

  • Add the is_floating() method, that simply returns if the dock is in a separate window.
  • Add the opened signal, which is fired when the dock is enabled via the "Editor > Editor Docks" menu.

This PR also fixes a bug: when the connection to the VCS is disabled and then re-enabled, only the bottom dock would re-appear.

The only thing missing from this compared to #113454 is the new icon, which can be added later on included in this PR, whatever is preferable.

}

if (!p_dock->is_open) {
p_dock->emit_signal("opened");
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be in EditorDockManager::open_dock(), especially because EditorDock::open and EditorDock::make_visible do not call this function

Copy link
Member Author

@YeldhamDev YeldhamDev Jan 28, 2026

Choose a reason for hiding this comment

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

Just like the closed signal only fires in the specific case of clicking the "Close" button in the editor. I chose consistency is this case, and I think it works for most needs.

@KoBeWi
Copy link
Member

KoBeWi commented Jan 28, 2026

This PR also fixes a bug: when the connection to the VCS is disabled and then re-enabled, only the bottom dock would re-appear.

My PR also fixed this. It's a bug in EditorDock.

@YeldhamDev
Copy link
Member Author

@KoBeWi Oh, I missed that! I will incorporate the right fix on this one (with co-authoring).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants