mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
check path is not empty (#2203)
* check path is not empty * fix formatting * use isEmpty() to check path
This commit is contained in:
parent
60d5c5d99f
commit
529f19a2de
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ QString Paths::cacheDirectory()
|
|||
QStringSetting cachePathSetting("/cache/path");
|
||||
|
||||
cachePathSetting.connect([](const auto &newPath, auto) {
|
||||
QDir().mkpath(newPath);
|
||||
if (!newPath.isEmpty())
|
||||
{
|
||||
QDir().mkpath(newPath);
|
||||
}
|
||||
});
|
||||
|
||||
return cachePathSetting;
|
||||
|
|
Loading…
Reference in a new issue