forked from qt-creator/qt-creator
QmlDesigner: Remove check
This is taken care of in update already. Empty section are not shown. Change-Id: I48763c42bb7d1b39e36b87be35e48c558a512c77 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -274,9 +274,6 @@ void ItemLibraryModel::updateVisibility(bool *changed)
|
|||||||
bool sectionVisibility = itemLibrarySection->updateSectionVisibility(sectionSearchText,
|
bool sectionVisibility = itemLibrarySection->updateSectionVisibility(sectionSearchText,
|
||||||
§ionChanged);
|
§ionChanged);
|
||||||
|
|
||||||
if (m_flowMode && itemLibrarySection->sectionName() != "My QML Components")
|
|
||||||
sectionVisibility= false;
|
|
||||||
|
|
||||||
*changed |= sectionChanged;
|
*changed |= sectionChanged;
|
||||||
*changed |= itemLibrarySection->setVisible(sectionVisibility);
|
*changed |= itemLibrarySection->setVisible(sectionVisibility);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user