-
-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Convert the bottom VCS dock to a EditorDock and tie it with the Commit dock
#115482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| if (!p_dock->is_open) { | ||
| p_dock->emit_signal("opened"); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
ed3abbe to
4a5eb23
Compare
My PR also fixed this. It's a bug in EditorDock. |
|
@KoBeWi Oh, I missed that! I will incorporate the right fix on this one (with co-authoring). |
…mit dock Co-authored-by: Tomasz Chabora <[email protected]>
4a5eb23 to
d2b8e95
Compare
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:
is_floating()method, that simply returns if the dock is in a separate window.openedsignal, 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.