Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
6a91f3a9
Commit
6a91f3a9
authored
Feb 20, 2015
by
Matt Lowe
Browse files
Added hq image to check
parent
c5bc3ea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/settingscache.cpp
View file @
6a91f3a9
...
...
@@ -21,14 +21,12 @@ SettingsCache::SettingsCache()
playerBgPath
=
settings
->
value
(
"zonebg/playerarea"
).
toString
();
cardBackPicturePath
=
settings
->
value
(
"paths/cardbackpicture"
).
toString
();
picDownload
=
settings
->
value
(
"personal/picturedownload"
,
true
).
toBool
();
picDownloadHq
=
settings
->
value
(
"personal/picturedownloadhq"
,
true
).
toBool
();
// we only want to reset the cache once, then its up to the user
bool
updateCache
=
settings
->
value
(
"update/pixmapCacheSize"
,
false
).
toBool
();
if
(
!
updateCache
)
{
pixmapCacheSize
=
PIXMAPCACHE_SIZE_DEFAULT
;
settings
->
setValue
(
"personal/pixmapCacheSize"
,
pixmapCacheSize
);
settings
->
setValue
(
"personal/picturedownloadhq"
,
true
);
settings
->
setValue
(
"update/pixmapCacheSize"
,
true
);
}
else
...
...
@@ -37,6 +35,9 @@ SettingsCache::SettingsCache()
if
(
pixmapCacheSize
<
PIXMAPCACHE_SIZE_MIN
||
pixmapCacheSize
>
PIXMAPCACHE_SIZE_MAX
)
pixmapCacheSize
=
PIXMAPCACHE_SIZE_DEFAULT
;
picDownload
=
settings
->
value
(
"personal/picturedownload"
,
true
).
toBool
();
picDownloadHq
=
settings
->
value
(
"personal/picturedownloadhq"
,
true
).
toBool
();
picUrl
=
settings
->
value
(
"personal/picUrl"
,
PIC_URL_DEFAULT
).
toString
();
picUrlHq
=
settings
->
value
(
"personal/picUrlHq"
,
PIC_URL_HQ_DEFAULT
).
toString
();
picUrlFallback
=
settings
->
value
(
"personal/picUrlFallback"
,
PIC_URL_FALLBACK
).
toString
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment