mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Don't emit changed() twice in TomahawkSettings.
This commit is contained in:
@@ -489,32 +489,35 @@ TomahawkSettings::setVerboseNotifications( bool notifications )
|
|||||||
setValue( "ui/notifications/verbose", notifications );
|
setValue( "ui/notifications/verbose", notifications );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TomahawkSettings::showOfflineSources() const
|
TomahawkSettings::showOfflineSources() const
|
||||||
{
|
{
|
||||||
return value( "collection/sources/showoffline", false ).toBool();
|
return value( "collection/sources/showoffline", false ).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TomahawkSettings::setShowOfflineSources( bool show )
|
TomahawkSettings::setShowOfflineSources( bool show )
|
||||||
{
|
{
|
||||||
setValue( "collection/sources/showoffline", show );
|
setValue( "collection/sources/showoffline", show );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TomahawkSettings::enableEchonestCatalogs() const
|
TomahawkSettings::enableEchonestCatalogs() const
|
||||||
{
|
{
|
||||||
return value( "collection/enable_catalogs", false ).toBool();
|
return value( "collection/enable_catalogs", false ).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TomahawkSettings::setEnableEchonestCatalogs( bool enable )
|
TomahawkSettings::setEnableEchonestCatalogs( bool enable )
|
||||||
{
|
{
|
||||||
setValue( "collection/enable_catalogs", enable );
|
setValue( "collection/enable_catalogs", enable );
|
||||||
|
|
||||||
emit changed();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QByteArray
|
QByteArray
|
||||||
TomahawkSettings::playlistColumnSizes( const QString& playlistid ) const
|
TomahawkSettings::playlistColumnSizes( const QString& playlistid ) const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user