cache: improved setting manual cache path on a per project basis
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user