Skip to content

Commit

Permalink
#6021: Respect the eclass visibility property
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jul 29, 2022
1 parent bb923b0 commit 5811d7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/dm.editing/AIHeadChooserDialog.cpp
Expand Up @@ -2,7 +2,6 @@

#include "i18n.h"
#include "ieclass.h"
#include "ifavourites.h"

#include "eclass.h"

Expand Down
3 changes: 3 additions & 0 deletions plugins/dm.editing/ThreadedEntityDefPopulator.h
Expand Up @@ -48,6 +48,9 @@ class ThreadedEntityDefPopulator :
{
ThrowIfCancellationRequested();

// Don't include hidden eclasses
if (eclass->getVisibility() == vfs::Visibility::HIDDEN) return;

if (!ClassShouldBeListed(eclass)) return;

bool isFavourite = _favourites.count(eclass->getDeclName()) > 0;
Expand Down

0 comments on commit 5811d7e

Please sign in to comment.