Connect Dialog popup always centers after toggling "Advanced" tab #9871
stephen-berry
started this conversation in
Editor
Replies: 1 comment 1 reply
-
I don't expect it was intended, can you point to the code where it's done? This sounds like a bug |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary of issue
The "Connect a Signal to a Method" GUI centers upon creation, but any time you move the GUI around and toggle the "Advanced" tab, it re-centers.
Why this is being discussed
This seems counter-intuitive, as an existing GUI should not move unless the user decides to move it. I have a video displaying this in action.
Recording of Issue
popup_center-2024-06-02_08.27.04.mp4
Proposal vs Ticket
I wouldn't classify this as a bug because it is coded to be this way, but I would think it should be an improvement. If people agree that it shouldn't re-center, then an improvement ticket could be made.
Solution/Implementation
In connections_dialog.cpp, we have a call to Window::popup_centered() in both ConnectDialog::popup_dialog() and ConnectDialog::advanced_pressed().
ConnectDialog::popup_dialog() should be the only place the centering should happen, as it is the startup of the GUI. The advanced press method that toggles the Advanced button (imo) has no reason to re-center. If this call was simply removed, it would no longer center, making it a trivial fix.
Note
I may have put this in the wrong spot (Proposal vs discussion) but either way I'm sure I could paste this elsewhere if needed.
Beta Was this translation helpful? Give feedback.
All reactions