Fix contentmanager/mainWindow initialisation on windows. #783
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
But it has a test if the native window is null and return if yes. This is somehow buggy as the native window exists only if the widget has been shown and it is not the case.
setContentManager
add the end of the previous code. On windows it was never called and as soon as we try to use it (by clicking on "All files" (https://github.com/kiwix/kiwix-desktop/blob/master/src/contentmanagerside.cpp#L16)) kiwix-desktop crash.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