1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Hide things that depend on present-but-inactive game files

https://gitlab.com/OpenMW/openmw/-/merge_requests/3925#note_1843962919
This commit is contained in:
AnyOldName3 2024-04-07 22:12:39 +01:00
parent f8224b29d4
commit 48f1f08537

View File

@ -110,7 +110,7 @@ Qt::ItemFlags ContentSelectorModel::ContentModel::flags(const QModelIndex& index
return Qt::NoItemFlags;
if (file->builtIn() || file->fromAnotherConfigFile())
return Qt::NoItemFlags;
return Qt::ItemIsEnabled;
// game files can always be checked
if (file == mGameFile)
@ -228,7 +228,7 @@ QVariant ContentSelectorModel::ContentModel::data(const QModelIndex& index, int
{
if (file == mGameFile)
return ContentType_GameFile;
else
else if (flags(index))
return ContentType_Addon;
break;