add disable key to player monitor

This commit is contained in:
arcan1s 2015-08-05 01:14:09 +03:00
parent 1cddf6f14d
commit e38863ebc2
2 changed files with 3 additions and 2 deletions

View File

@ -212,7 +212,8 @@ QHash<QString, QString> ExtendedSysMon::updateConfiguration(QHash<QString, QStri
}
// player
if ((rawConfig[QString("PLAYER")] != QString("mpd")) &&
(rawConfig[QString("PLAYER")] != QString("mpris")))
(rawConfig[QString("PLAYER")] != QString("mpris")) &&
(rawConfig[QString("PLAYER")] != QString("disable")))
rawConfig[QString("PLAYER")] = QString("mpris");
for (int i=0; i<rawConfig.keys().count(); i++)

View File

@ -14,5 +14,5 @@ MPDPORT=6600
# MPRIS player name or 'auto'. In the most cases it should be a player name
## DBus path is org.mpris.MediaPlayer2.amarok
MPRIS=auto
# Player name. Supported players are 'mpd', 'mpris'
# Player name. Supported players are 'mpd', 'mpris', 'disable'
PLAYER=mpris