mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[ui] CompatibilityManager: Update message and check for null nodes model
This commit is contained in:
parent
cdf5c6746f
commit
91b604574a
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ MessageDialog {
|
|||
// alias to underlying compatibilityNodes model
|
||||
readonly property var nodesModel: uigraph ? uigraph.graph.compatibilityNodes : undefined
|
||||
// the total number of compatibility issues
|
||||
readonly property int issueCount: (nodesModel != undefined) ? nodesModel.count : 0
|
||||
readonly property int issueCount: (nodesModel !== undefined && nodesModel !== null) ? nodesModel.count : 0
|
||||
// the number of CompatibilityNodes that can be upgraded
|
||||
readonly property int upgradableCount: {
|
||||
var count = 0
|
||||
|
@ -113,7 +113,7 @@ MessageDialog {
|
|||
|
||||
Label {
|
||||
id: questionLabel
|
||||
text: upgradableCount ? "Upgrade all possible nodes to current version ?"
|
||||
text: upgradableCount ? "Upgrade all possible nodes to current version?"
|
||||
: "Those nodes can't be upgraded, remove them manually if needed."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue