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

CuraApplication.py add startReloadAll signal when reloadAll is called #19608

Open
wants to merge 4 commits into
base: 5.8
Choose a base branch
from

Conversation

dfries
Copy link

@dfries dfries commented Sep 3, 2024

Description

Uranium/UM/Scene/Scene.py commit "Scene.py add _hideReloadMessage, connect to startReloadAll" Uranium pull request Ultimaker/Uranium#964 depends on this commit and the signal startReloadAll, which it will
use to cancel file modification reload dialog. Once all the models
are reloaded, the file modification reload dialog is not needed.

Type of change

  • New feature (non-breaking change which adds functionality) I could argue this is a bug.

How Has This Been Tested?

  • Exercise F5 reloadAll
  1. Load a set of models
  2. Externally modify a file
  3. Verify "File has been modified" dialog shows, don't click it
  4. Press F5, verify the new model shows and "File has been modified" dialog hides

Test Configuration:

  • Operating System: Debian Linux

Checklist:

"share/cura/resources/qml/Menus/RecentFilesMenu.qml:39:
TypeError: Passing incompatible arguments to C++ functions from JavaScript is not allowed."

This was passing the Instantiator index, which is a Number to menu.removeItem
which is expecting an object.  Add the missing index argument.  I
found Qt 5.7 had two arguments so it has been there for some time.
share/cura/resources/qml/PrintSetupSelector/Recommended/RecommendedSupportSelector.qml:60:17:
Unable to assign [undefined] to int

If undefined use Widgets/SingleSettingComboBox.qml
default of Cura.ExtruderManager.activeExtruderIndex
If "T(\d*)" was "T(\n*)" it would search for newlines.  There isn't
any such \d escape character.

It should be "T(\\d*)" or r"T(\d*)" going with the latter, to be
easier to read and be consistent with other Cura usage.

Start python with -Wd or for python 3.12 will raise a SyntaxWarning.
Uranium/UM/Scene/Scene.py depends this startReloadAll, which it will
use to cancel file modification reload dialog.  Once all the models
are reloaded, the file modification reload is not needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Community Contribution 👑 Community Contribution PR's
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant