Fix plugin package loading#745
Conversation
Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
WalkthroughThis PR modifies MainWindow to implement dynamic menu updates when extensions change. It introduces an initialization flag to track completion of the initial menu-building phase, simplifies package installation logic to only proceed upon user confirmation, and updates debug messaging terminology. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@avogadro/mainwindow.cpp`:
- Around line 1333-1335: The preprocessor guard around the debug logging
statement using qDebug() << "Load registered packages" is wrong (uses `#ifndef`
DEBUG) so the log runs in release builds; change the guard to `#ifndef` NDEBUG so
the qDebug() call is compiled only in non-release builds, matching the other
debug-only blocks in this file.
- Around line 320-325: Replace the incorrect preprocessor guard that uses DEBUG
with the standard NDEBUG macro so the qDebug() call is compiled only in debug
builds; specifically, find the conditional around the qDebug() call (currently
using "#ifndef DEBUG") in mainwindow.cpp (near where the menu/buildMenuBar
lambda and m_menuBuilder are used) and change it to "#ifndef NDEBUG" to match
the rest of the codebase and suppress debug output in release builds.
Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Summary by CodeRabbit
Release Notes
New Features
Improvements
Chores