desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Exclude NavigationPaneHelper from non-Windows compile

Open claucambra opened this issue 3 years ago • 3 comments

Since NavigationPaneHelper only includes functionality relevant to Windows and its introduction causes compile warnings on other platforms, this PR excludes the NPH from non-Windows builds

The ifdefs that cause warnings on other platforms have been modified to fix them if in the future NavigationPaneHelper is used on other platforms too

claucambra avatar Dec 19 '22 16:12 claucambra

Codecov Report

Merging #5288 (59940f6) into master (fb83518) will decrease coverage by 0.03%. The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5288      +/-   ##
==========================================
- Coverage   57.63%   57.59%   -0.04%     
==========================================
  Files         139      139              
  Lines       17596    17596              
==========================================
- Hits        10142    10135       -7     
- Misses       7454     7461       +7     
Impacted Files Coverage Δ
src/libsync/propagatedownload.cpp 63.72% <0.00%> (-1.18%) :arrow_down:
src/libsync/propagateremotemove.cpp 82.28% <0.00%> (+0.57%) :arrow_up:

codecov[bot] avatar Dec 19 '22 16:12 codecov[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Dec 19 '22 18:12 sonarqubecloud[bot]

AppImage file: nextcloud-PR-5288-59940f65dbc40f4823c794e096432faea24a451c-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.

nextcloud-desktop-bot avatar Dec 19 '22 22:12 nextcloud-desktop-bot

@claucambra can you fix the conflicts ?

Thanks, done

claucambra avatar Mar 13 '25 03:03 claucambra

looks good, but there is also another usage of navigationPaneHelper that breaks compilation:

src/gui/accountsetupfromcommandlinejob.cpp
179:    if (folderMan->navigationPaneHelper().showInExplorerNavigationPane()) {

Thanks, fixed

claucambra avatar Mar 14 '25 03:03 claucambra

Quality Gate Failed Quality Gate failed

Failed conditions
75 New Code Smells (required ≤ 0)
E Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

sonarqubecloud[bot] avatar Mar 14 '25 14:03 sonarqubecloud[bot]

/backport to stable-3.16

claucambra avatar Apr 15 '25 09:04 claucambra

Artifact containing the AppImage: nextcloud-appimage-pr-5288.zip

SHA256 checksum: cd975a45df650bf6ecf61f2e5f7e4795e763a769fef87dbdd7e69d7981f2036f

To test this change/fix you can download the above artifact file, unzip it, and run it.

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

github-actions[bot] avatar Apr 15 '25 09:04 github-actions[bot]