Since these were part of the childrenRect of the bar, and attached to the bottom of the bar, the childrenRect depended on the position of the children and that depends on the childrenRect again. So just attach it to the top, it's logical.
Contributes to issue CURA-5876.
In order to prevent suddenly switching to the other side when the connection is lost or restored, we only evaluate this upon opening the popup. This way you might be surprised that closing and then opening it can show something else, but it will never surprise you while working on the popup itself as a user.
Contributes to issue CURA-5876.
This is going to function as our main item for the configuration menu. It contains the part in the top bar and the glue item for the part in the popup.
Contributes to issue CURA-5876.