Open AlexanderMamonov opened 3 years ago
@AlexanderMamonov, Same thing has happened to me but now the progress bar won't even show up anymore upon opening Anki. @glutanimate, using 2.1.35.
Thanks for the report, guys. Will look into this.
It seems that Anki or Qt saves state of QDockWidget before exit and it tries to restore it on start. It seems because of some update Qt wasn't able to find where the QDockWidget with the progress bar should be added and it decided to keep it as a separate window. Because of this line you cannot really drag and drop the QDockWidget. I commented this line and QDockWidget got title bar. I used drag and drop to dock the QDockWidget into the top of the main window. I closed Anki, uncommented the line and started Anki again. The progressbar located and looks exactly how it suppose to be.
I bet the same effect could be achieved by removing a file where Qt stores settings of QDockWidgets.
I am not sure should we do something to prevent this kind of behaviour? Does the QProgressBar really needed to be in the QDockWidget? Why? If Yes, then the Dock should be draggle by any part of the window not only by the title or it should get a title if the Dock detached from the main window.
Problem description
Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
The progress bar is not at the top of the main window but it is a separate window. I guess it cannot add itself as a child of the main window. Maybe when it tries to do it the main window doesn't exist? I'm using the latest version from this repository git HEAD is ed3731887a5e239efebc8e26d59e65a23be7a983
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):
Error message (if any)
If you've received an error message, please copy and paste it between the backticks below: