mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-23 02:42:16 -07:00
Minor Cleanup
This commit is contained in:
parent
8f056766a2
commit
e5a53fc82e
2 changed files with 7 additions and 7 deletions
|
|
@ -655,8 +655,8 @@ DeckEditorSettingsPage::DeckEditorSettingsPage()
|
||||||
lpGeneralGrid->addWidget(&resetDownloadURLs, 0, 1);
|
lpGeneralGrid->addWidget(&resetDownloadURLs, 0, 1);
|
||||||
lpGeneralGrid->addLayout(messageListLayout, 1, 0, 1, 2);
|
lpGeneralGrid->addLayout(messageListLayout, 1, 0, 1, 2);
|
||||||
lpGeneralGrid->addLayout(networkCacheLayout, 2, 0, 1, 2);
|
lpGeneralGrid->addLayout(networkCacheLayout, 2, 0, 1, 2);
|
||||||
lpGeneralGrid->addLayout(networkRedirectCacheLayout, 3, 0, 1, 2);
|
lpGeneralGrid->addLayout(pixmapCacheLayout, 3, 0, 1, 2);
|
||||||
lpGeneralGrid->addLayout(pixmapCacheLayout, 4, 0, 1, 2);
|
lpGeneralGrid->addLayout(networkRedirectCacheLayout, 4, 0, 1, 2);
|
||||||
lpGeneralGrid->addWidget(&urlLinkLabel, 5, 0);
|
lpGeneralGrid->addWidget(&urlLinkLabel, 5, 0);
|
||||||
lpGeneralGrid->addWidget(&clearDownloadedPicsButton, 5, 1);
|
lpGeneralGrid->addWidget(&clearDownloadedPicsButton, 5, 1);
|
||||||
|
|
||||||
|
|
@ -860,9 +860,9 @@ void DeckEditorSettingsPage::retranslateUi()
|
||||||
resetDownloadURLs.setText(tr("Reset Download URLs"));
|
resetDownloadURLs.setText(tr("Reset Download URLs"));
|
||||||
networkCacheLabel.setText(tr("Network Cache Size:"));
|
networkCacheLabel.setText(tr("Network Cache Size:"));
|
||||||
networkCacheEdit.setToolTip(tr("On-disk cache for downloaded pictures"));
|
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."));
|
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"));
|
pixmapCacheEdit.setToolTip(tr("In-memory cache for pictures not currently on screen"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
class ReleaseChannel;
|
class ReleaseChannel;
|
||||||
|
|
||||||
// size should be a multiple of 64
|
// In MB (Increments of 64)
|
||||||
#define PIXMAPCACHE_SIZE_DEFAULT 2047
|
#define PIXMAPCACHE_SIZE_DEFAULT 2048
|
||||||
#define PIXMAPCACHE_SIZE_MIN 64
|
#define PIXMAPCACHE_SIZE_MIN 64
|
||||||
#define PIXMAPCACHE_SIZE_MAX 2047
|
#define PIXMAPCACHE_SIZE_MAX 4096
|
||||||
|
|
||||||
// In MB
|
// In MB
|
||||||
constexpr int NETWORK_CACHE_SIZE_DEFAULT = 1024 * 4; // 4 GB
|
constexpr int NETWORK_CACHE_SIZE_DEFAULT = 1024 * 4; // 4 GB
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue