Hide harmless error when no matches for filter
This commit is contained in:
parent
314b2c30ad
commit
e713eb7e24
|
@ -16,8 +16,10 @@ HInteractiveRectangle {
|
||||||
readonly property bool forceExpand:
|
readonly property bool forceExpand:
|
||||||
Boolean(accountRoomList.filter)
|
Boolean(accountRoomList.filter)
|
||||||
|
|
||||||
readonly property bool collapsed:
|
// Hide harmless error when a filter matches nothing
|
||||||
accountRoomList.collapseAccounts[model.data.user_id] || false
|
readonly property bool collapsed: try {
|
||||||
|
return accountRoomList.collapseAccounts[model.data.user_id] || false
|
||||||
|
} catch (err) {}
|
||||||
|
|
||||||
|
|
||||||
onIsCurrentChanged: if (isCurrent) beHighlighted()
|
onIsCurrentChanged: if (isCurrent) beHighlighted()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user