mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Check for undefined and null values in QML
Conditional chaining is not available in Qt5.15, so this is uglier than it should be.
This commit is contained in:
@ -637,8 +637,8 @@ Rectangle {
|
||||
color: #FFCB00;
|
||||
text-decoration:none;
|
||||
}
|
||||
</style></head><body>' + currentComicInfo.synopsis + '</body></html>'
|
||||
visible: currentComicInfo.synopsis
|
||||
</style></head><body>' + currentComicInfo.synopsis ?? "" + '</body></html>'
|
||||
visible: currentComicInfo.synopsis ?? false
|
||||
textFormat: Text.RichText
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user