Removed redundant string comparison

CURA-7038
This commit is contained in:
Dimitriovski 2020-01-07 14:43:49 +01:00
parent 75d2a72424
commit fc504a7cb6
No known key found for this signature in database
GPG key ID: 4E62757E2B0D304D
2 changed files with 6 additions and 6 deletions

View file

@ -61,7 +61,7 @@ UM.Dialog{
{
width: parent.width
property int lineHeight: 60
visible: model.is_compatible === "True" ? true : false
visible: model.is_compatible
height: visible ? (lineHeight + UM.Theme.getSize("default_margin").height) : 0 // We only show the compatible packages here
Image
{
@ -104,7 +104,7 @@ UM.Dialog{
{
width: parent.width
property int lineHeight: 60
visible: model.is_compatible === "True" ? false : true
visible: !model.is_compatible
height: visible ? (lineHeight + UM.Theme.getSize("default_margin").height) : 0 // We only show the incompatible packages here
Image
{