Add cached emotes fallback for failed provider fetches (#6125)
This commit is contained in:
@@ -39,7 +39,7 @@ QString Paths::cacheDirectory() const
|
||||
static const auto pathSetting = [] {
|
||||
QStringSetting cachePathSetting("/cache/path");
|
||||
|
||||
cachePathSetting.connect([](const auto &newPath, auto) {
|
||||
cachePathSetting.connect([](const auto &newPath) {
|
||||
if (!newPath.isEmpty())
|
||||
{
|
||||
QDir().mkpath(newPath);
|
||||
@@ -59,6 +59,11 @@ QString Paths::cacheDirectory() const
|
||||
return path;
|
||||
}
|
||||
|
||||
QString Paths::cacheFilePath(const QString &fileName) const
|
||||
{
|
||||
return combinePath(this->cacheDirectory(), fileName);
|
||||
}
|
||||
|
||||
void Paths::initAppFilePathHash()
|
||||
{
|
||||
this->applicationFilePathHash =
|
||||
|
||||
Reference in New Issue
Block a user