mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 06:40:22 +00:00
Display directories that contains omwscripts.
Display newly added omwscripts as new.
This commit is contained in:
parent
5446906b30
commit
37c4587ca4
@ -40,7 +40,7 @@ namespace
|
||||
{
|
||||
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" };
|
||||
|
||||
QDir currentDir(path);
|
||||
|
@ -461,6 +461,7 @@ void ContentSelectorModel::ContentModel::addFiles(const QString& path, bool newf
|
||||
file->setDate(info.lastModified());
|
||||
file->setFilePath(info.absoluteFilePath());
|
||||
addFile(file);
|
||||
setNew(file->fileName(), newfiles);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user