Add support for setting the content type to a whole library

This commit is contained in:
Luis Ángel San Martín
2024-07-09 19:18:22 +02:00
parent 58ec456fc7
commit f9039c7a26
9 changed files with 225 additions and 50 deletions

View File

@ -71,13 +71,6 @@ Folder &Folder::operator=(const Folder &other)
return *this;
}
Folder Folder::rootFolder()
{
auto root = Folder(1, 1, "root", "/");
root.type = YACReader::FileType::Comic; // TODO: make this configurable by the user so it can set a default type for a library
return root;
}
Folder::Folder(const QString &folderName, const QString &folderPath)
: knownParent(false),
knownId(false),

View File

@ -41,8 +41,6 @@ public:
Folder(const Folder &folder);
Folder &operator=(const Folder &other);
static Folder rootFolder();
inline void setId(qulonglong sid)
{
id = sid;