Skip to content
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

Fix contentmanager/mainWindow initialisation on windows. #783

Merged
merged 1 commit into from Feb 8, 2022

Conversation

mgautierfr
Copy link
Member

This PR "simply" move the configuration of the fullscreen border at the correct position (after the widget is shown) and remove the early exit in the constructor. Every thing is configured correctly.
A build of this PR is available here : http://tmp.kiwix.org/ci/fix_windows_contentmanager/kiwix-desktop_windows_x64_2022-02-07.zip
Fix #775

`windowHandle` return a valid value only if the widget has been shown.
So we must use it *after* it is shown, not at the end of its construction.

This subtle change also avoid a early return in the MainWindow constructor
and so, we correctly configure the mainWindow on Windows.
The last configuration is setting the content manager of the content manager
side. If this is skip, kiwix-desktop crash as soon as we click on "All files"
as we use a uninitialized pointer.
@kelson42
Copy link
Collaborator

kelson42 commented Feb 7, 2022

@mgautierfr Thank you very much for the PR
@Popolechien If you could check the ZIP provided by Matthieu please?
@asashnov @juuz0 Considering the nature of the bug, I would like to merge this PR within 2 days if no problem is found, so we can make a new release.

@juuz0
Copy link
Collaborator

juuz0 commented Feb 8, 2022

Works good on my side (also fixes the side filter panel showing up in Settings)

@kelson42 kelson42 merged commit e1472b2 into master Feb 8, 2022
@kelson42 kelson42 deleted the fix_windows_contentmanager branch February 8, 2022 07:46
@Popolechien
Copy link
Member

Late to the party but works for me. The library, however, did not load up any files but I don't know if that is bug or feature.

@kelson42
Copy link
Collaborator

kelson42 commented Feb 8, 2022

It should

@Popolechien
Copy link
Member

Well then we have a new problem.

@juuz0
Copy link
Collaborator

juuz0 commented Feb 8, 2022

Just a hunch but maybe its a language filter issue? Browse by language -> All, if that shows

@Popolechien Popolechien mentioned this pull request Feb 8, 2022
@Popolechien
Copy link
Member

Popolechien commented Feb 8, 2022

Nope. Tested on 2.0.5 and it's not working either (pretty sure it did before). My internet works, got no filter or weird settings.

Will test in a couple of hours on another PC on another network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REGRESSION] Searching for "All files" crashes application on Windows
4 participants