mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-10-05 10:03:43 +02:00
implement adding in getnewstuffmodel for attica resolvers
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include <QTimer>
|
||||
|
||||
#include "utils/logger.h"
|
||||
#include "accounts/ResolverAccount.h"
|
||||
#include "accounts/AccountManager.h"
|
||||
|
||||
using namespace Attica;
|
||||
|
||||
@@ -374,6 +376,9 @@ AtticaManager::payloadFetched()
|
||||
|
||||
// Do the install / add to tomahawk
|
||||
Tomahawk::Pipeline::instance()->addScriptResolver( resolverPath, true );
|
||||
Tomahawk::Accounts::Account* resolver = Tomahawk::Accounts::ResolverAccountFactory::createFromPath( resolverPath, true );
|
||||
Tomahawk::Accounts::AccountManager::instance()->addAccount( resolver );
|
||||
|
||||
m_resolverStates[ resolverId ].state = Installed;
|
||||
TomahawkSettingsGui::instanceGui()->setAtticaResolverStates( m_resolverStates );
|
||||
emit resolverInstalled( resolverId );
|
||||
|
Reference in New Issue
Block a user