cache: improved setting manual cache path on a per project basis

This commit is contained in:
itsmattkc
2020-08-07 13:41:09 +10:00
parent df14c2aaa7
commit d85089f71a
12 changed files with 119 additions and 194 deletions
+3 -8
View File
@@ -25,7 +25,6 @@
#include <memory>
#include "render/colormanager.h"
#include "render/diskmanager.h"
#include "project/item/folder/folder.h"
#include "window/mainwindow/mainwindowlayoutinfo.h"
@@ -72,14 +71,10 @@ public:
bool is_new() const;
const QString& cache_path(bool default_if_empty = true) const {
if (cache_path_.isEmpty() && default_if_empty) {
return DiskManager::instance()->GetDefaultCachePath();
}
return cache_path_;
}
const QString& cache_path(bool default_if_empty = true) const;
void set_cache_path(const QString& cache_path) {
void set_cache_path(const QString& cache_path)
{
cache_path_ = cache_path;
}