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

Clean up QML type and singleton registration #4817

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

claucambra
Copy link
Collaborator

Currently we register QML types and singletons in two separate places, main.cpp and systray.cpp. I suppose this was done to prevent errors initialising things where they shouldn't be; unfortunately the result is that nothing is initialised in the code near to where the QML engine is actually started, and it is of course separated.

This PR declares all the QML types to register in owncloudgui.cpp, where the QML engine is started, and cleans up the registration of types and especially singletons.

Signed-off-by: Claudio Cambra claudio.cambra@gmail.com

@sonarcloud
Copy link

sonarcloud bot commented Aug 4, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Aug 4, 2022

Codecov Report

Merging #4817 (e79ced2) into master (a40202c) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4817      +/-   ##
==========================================
+ Coverage   57.15%   57.16%   +0.01%     
==========================================
  Files         138      138              
  Lines       17135    17135              
==========================================
+ Hits         9794     9796       +2     
+ Misses       7341     7339       -2     
Impacted Files Coverage Δ
src/libsync/vfs/cfapi/cfapiwrapper.cpp 74.65% <0.00%> (+0.45%) ⬆️

@mgallien mgallien force-pushed the bugfix/cleanup-qml-registration branch from bd22ed9 to 7fe53a2 Compare September 7, 2022 08:07
Copy link
Collaborator

@mgallien mgallien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
@claucambra claucambra force-pushed the bugfix/cleanup-qml-registration branch from 7fe53a2 to e79ced2 Compare September 7, 2022 15:00
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-4817-e79ced22aebd1c9d5455fd9b5371ca122779d9ba-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarcloud
Copy link

sonarcloud bot commented Sep 7, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@claucambra claucambra merged commit a4929ea into master Sep 7, 2022
@claucambra claucambra deleted the bugfix/cleanup-qml-registration branch September 7, 2022 16:16
@mgallien mgallien added this to the 3.7.0 milestone Oct 3, 2022
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.

3 participants