mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
make paths cachedirectory formatting nicer
This commit is contained in:
parent
834b1f3c53
commit
fa6c9f2fba
1 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@ bool Paths::isPortable()
|
|||
|
||||
QString Paths::cacheDirectory()
|
||||
{
|
||||
static const auto path = [] {
|
||||
static const auto pathSetting = [] {
|
||||
QStringSetting cachePathSetting("/cache/path");
|
||||
|
||||
cachePathSetting.connect([](const auto &newPath, auto) {
|
||||
|
@ -45,7 +45,9 @@ QString Paths::cacheDirectory()
|
|||
});
|
||||
|
||||
return cachePathSetting;
|
||||
}().getValue();
|
||||
}();
|
||||
|
||||
auto path = pathSetting.getValue();
|
||||
|
||||
if (path.isEmpty())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue