diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/MainWindow.cpp | 4 | ||||
-rw-r--r-- | application/handlers/WebResourceHandler.cpp | 2 | ||||
-rw-r--r-- | application/pages/global/AccountListPage.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 1633cc39..ef758fae 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -534,7 +534,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow auto meta = Env::getInstance().metacache()->resolveEntry("skins", profile.id + ".png"); auto action = CacheDownload::make(QUrl("https://" + URLConstants::SKINS_BASE + profile.id + ".png"), meta); skin_dls.append(action); - meta->stale = true; + meta->setStale(true); } } if (!skin_dls.isEmpty()) @@ -1028,7 +1028,7 @@ InstancePtr MainWindow::instanceFromZipPack(QString instName, QString instGroup, { const QString path = url.host() + '/' + url.path(); auto entry = ENV.metacache()->resolveEntry("general", path); - entry->stale = true; + entry->setStale(true); CacheDownloadPtr dl = CacheDownload::make(url, entry); NetJob job(tr("Modpack download")); job.addNetAction(dl); diff --git a/application/handlers/WebResourceHandler.cpp b/application/handlers/WebResourceHandler.cpp index 5e51584b..757b870a 100644 --- a/application/handlers/WebResourceHandler.cpp +++ b/application/handlers/WebResourceHandler.cpp @@ -13,7 +13,7 @@ WebResourceHandler::WebResourceHandler(const QString &url) : QObject(), m_url(url) { MetaEntryPtr entry = ENV.metacache()->resolveEntry("icons", url); - if (!entry->stale) + if (!entry->isStale()) { setResultFromFile(entry->getFullPath()); } diff --git a/application/pages/global/AccountListPage.cpp b/application/pages/global/AccountListPage.cpp index 84d317c1..89b853c5 100644 --- a/application/pages/global/AccountListPage.cpp +++ b/application/pages/global/AccountListPage.cpp @@ -133,7 +133,7 @@ void AccountListPage::addAccount(const QString &errMsg) auto action = CacheDownload::make( QUrl("https://" + URLConstants::SKINS_BASE + profile.id + ".png"), meta); job->addNetAction(action); - meta->stale = true; + meta->setStale(true); } job->start(); |