Hide htbackdrops from about pages if we have no API key
This commit is contained in:
committed by
craig.p.drummond
parent
0144fe143f
commit
f140ab7c1b
@@ -56,7 +56,7 @@
|
||||
#define DBUG qDebug()
|
||||
#endif
|
||||
|
||||
static const QLatin1String constApiKey(""); // TODO: Apply for API key!!!
|
||||
const QLatin1String ContextPage::constApiKey(0); // API key required
|
||||
const QLatin1String ContextPage::constCacheDir("backdrops/");
|
||||
|
||||
static QString cacheFileName(const QString &artist, bool createDir)
|
||||
@@ -69,7 +69,7 @@ ContextPage::ContextPage(QWidget *parent)
|
||||
, job(0)
|
||||
, drawBackdrop(true)
|
||||
, darkBackground(false)
|
||||
, useHtBackdrops(!QString(constApiKey).isEmpty())
|
||||
, useHtBackdrops(0!=constApiKey.latin1())
|
||||
, fadeValue(0)
|
||||
, isWide(false)
|
||||
, stack(0)
|
||||
|
||||
Reference in New Issue
Block a user