1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

Display directories that contains omwscripts.

Display newly added omwscripts as new.
This commit is contained in:
fredzio 2023-03-30 21:32:01 +02:00
parent 5446906b30
commit 37c4587ca4
2 changed files with 2 additions and 1 deletions

View file

@ -40,7 +40,7 @@ namespace
{ {
void contentSubdirs(const QString& path, QStringList& dirs) void contentSubdirs(const QString& path, QStringList& dirs)
{ {
QStringList fileFilter{ "*.esm", "*.esp", "*.omwaddon", "*.bsa" }; QStringList fileFilter{ "*.esm", "*.esp", "*.omwaddon", "*.bsa", "*.omwscripts" };
QStringList dirFilter{ "bookart", "icons", "meshes", "music", "sound", "textures" }; QStringList dirFilter{ "bookart", "icons", "meshes", "music", "sound", "textures" };
QDir currentDir(path); QDir currentDir(path);

View file

@ -461,6 +461,7 @@ void ContentSelectorModel::ContentModel::addFiles(const QString& path, bool newf
file->setDate(info.lastModified()); file->setDate(info.lastModified());
file->setFilePath(info.absoluteFilePath()); file->setFilePath(info.absoluteFilePath());
addFile(file); addFile(file);
setNew(file->fileName(), newfiles);
continue; continue;
} }