mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
* Update internal loved state sooner to make the UI feel more responsive.
This commit is contained in:
@@ -342,6 +342,9 @@ TrackData::loved()
|
||||
void
|
||||
TrackData::setLoved( bool loved )
|
||||
{
|
||||
m_currentSocialActions[ "Love" ] = loved;
|
||||
emit socialActionsLoaded();
|
||||
|
||||
DatabaseCommand_SocialAction* cmd = new DatabaseCommand_SocialAction( m_ownRef.toStrongRef(), QString( "Love" ), loved ? QString( "true" ) : QString( "false" ) );
|
||||
Database::instance()->enqueue( Tomahawk::dbcmd_ptr( cmd ) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user