gecos-lab / PZero

GNU Affero General Public License v3.0
22 stars 2 forks source link

Side flashing when opening a new view #56

Closed gbene closed 11 months ago

gbene commented 11 months ago

When opening a new view the window is briefly opened on the side and then attached to the dockwidget resulting in an annoying flash under the mouse pointer.

https://github.com/andrea-bistacchi/PZero/assets/40857804/fba979e2-7fe5-4a13-88ec-779a6e98be2e

gbene commented 11 months ago

This is solved by commenting the self.show_qt_canvas() method in the BaseView class. I think that now this method is redundant and can be removed since the change apparently does not impact functionality. For now I pushed the fix on the AB_GUI_test branch https://github.com/andrea-bistacchi/PZero/commit/f55609fd176223f9bd6f93962595c618194f5397 by just commenting the line.

https://github.com/andrea-bistacchi/PZero/assets/40857804/dd851bd0-2968-447e-b9b3-5e09fd198b9a