mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
core/qmlglobal: expose cacheDir
This commit is contained in:
parent
fee4942771
commit
69c7f4fe77
3 changed files with 16 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ QString QsPaths::ipcPath(const QString& id) {
|
|||
QDir* QsPaths::cacheDir() {
|
||||
if (this->cacheState == DirState::Unknown) {
|
||||
auto dir = QDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
|
||||
dir = QDir(dir.filePath("by-shell"));
|
||||
dir = QDir(dir.filePath(this->shellId));
|
||||
this->mCacheDir = dir;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue