diff --git a/cockatrice/src/dialogs/dlg_settings.cpp b/cockatrice/src/dialogs/dlg_settings.cpp index 11e8bd45a..cef4ceaee 100644 --- a/cockatrice/src/dialogs/dlg_settings.cpp +++ b/cockatrice/src/dialogs/dlg_settings.cpp @@ -655,8 +655,8 @@ DeckEditorSettingsPage::DeckEditorSettingsPage() lpGeneralGrid->addWidget(&resetDownloadURLs, 0, 1); lpGeneralGrid->addLayout(messageListLayout, 1, 0, 1, 2); lpGeneralGrid->addLayout(networkCacheLayout, 2, 0, 1, 2); - lpGeneralGrid->addLayout(networkRedirectCacheLayout, 3, 0, 1, 2); - lpGeneralGrid->addLayout(pixmapCacheLayout, 4, 0, 1, 2); + lpGeneralGrid->addLayout(pixmapCacheLayout, 3, 0, 1, 2); + lpGeneralGrid->addLayout(networkRedirectCacheLayout, 4, 0, 1, 2); lpGeneralGrid->addWidget(&urlLinkLabel, 5, 0); lpGeneralGrid->addWidget(&clearDownloadedPicsButton, 5, 1); @@ -860,9 +860,9 @@ void DeckEditorSettingsPage::retranslateUi() resetDownloadURLs.setText(tr("Reset Download URLs")); networkCacheLabel.setText(tr("Network Cache Size:")); networkCacheEdit.setToolTip(tr("On-disk cache for downloaded pictures")); - networkRedirectCacheTtlLabel.setText(tr("Redirect cache expiration time in days")); + networkRedirectCacheTtlLabel.setText(tr("Redirect Cache TTL:")); networkRedirectCacheTtlEdit.setToolTip(tr("How long cached redirects for urls are valid for.")); - pixmapCacheLabel.setText(tr("Picture cache size:")); + pixmapCacheLabel.setText(tr("Picture Cache Size:")); pixmapCacheEdit.setToolTip(tr("In-memory cache for pictures not currently on screen")); } diff --git a/cockatrice/src/settings/cache_settings.h b/cockatrice/src/settings/cache_settings.h index 2e358092e..fdfdb6f53 100644 --- a/cockatrice/src/settings/cache_settings.h +++ b/cockatrice/src/settings/cache_settings.h @@ -16,10 +16,10 @@ class ReleaseChannel; -// size should be a multiple of 64 -#define PIXMAPCACHE_SIZE_DEFAULT 2047 +// In MB (Increments of 64) +#define PIXMAPCACHE_SIZE_DEFAULT 2048 #define PIXMAPCACHE_SIZE_MIN 64 -#define PIXMAPCACHE_SIZE_MAX 2047 +#define PIXMAPCACHE_SIZE_MAX 4096 // In MB constexpr int NETWORK_CACHE_SIZE_DEFAULT = 1024 * 4; // 4 GB