mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
TWK-768: Enable xmlconsole by adding an xmlconsole arg to the settings for an account
This commit is contained in:
@@ -954,8 +954,9 @@ void XmppSipPlugin::onNewAvatar( const QString& jid )
|
|||||||
bool
|
bool
|
||||||
XmppSipPlugin::readXmlConsoleEnabled()
|
XmppSipPlugin::readXmlConsoleEnabled()
|
||||||
{
|
{
|
||||||
QVariantHash configuration = m_account->configuration();
|
// HACK we want to allow xmlconsole to be set manually in the onfig file, which means we can't hide it in a QVariantHash
|
||||||
return configuration.contains( "xmlconsole" ) && configuration[ "xmlconsole" ].toBool();
|
const bool xmlConsole = TomahawkSettings::instance()->value( QString( "accounts/%1/xmlconsole" ).arg( account()->accountId() ), false ).toBool();
|
||||||
|
return xmlConsole;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user