fix: ensure all resource folders exist
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
		@@ -51,7 +51,6 @@
 | 
			
		||||
 | 
			
		||||
ModFolderModel::ModFolderModel(const QString &dir, bool is_indexed) : ResourceFolderModel(QDir(dir)), m_is_indexed(is_indexed)
 | 
			
		||||
{
 | 
			
		||||
    FS::ensureFolderPathExists(m_dir.absolutePath());
 | 
			
		||||
    m_column_sort_keys = { SortType::ENABLED, SortType::NAME, SortType::VERSION, SortType::DATE };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,8 @@
 | 
			
		||||
 | 
			
		||||
ResourceFolderModel::ResourceFolderModel(QDir dir, QObject* parent) : QAbstractListModel(parent), m_dir(dir), m_watcher(this)
 | 
			
		||||
{
 | 
			
		||||
    FS::ensureFolderPathExists(m_dir.absolutePath());
 | 
			
		||||
 | 
			
		||||
    m_dir.setFilter(QDir::Readable | QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs);
 | 
			
		||||
    m_dir.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user