mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Don't show osd for active/dective action when wiimotedev notifications are disabled
This commit is contained in:
parent
d70887c776
commit
3858c30614
@ -126,17 +126,19 @@ void WiimotedevShortcuts::DbusWiimoteGeneralButtons(uint id, qulonglong value) {
|
||||
|
||||
if (actions_.contains(buttons)) {
|
||||
|
||||
if (!actived_ || wiimotedev_active_) {
|
||||
if (actions_.value(buttons, 0xff) == WiimotedevActiveDeactive) {
|
||||
if (wiimotedev_active_) {
|
||||
if (actions_.value(buttons, ActionNone) == WiimotedevActiveDeactive) {
|
||||
actived_ = !actived_;
|
||||
if (actived_)
|
||||
emit WiiremoteActived(id); else
|
||||
emit WiiremoteDeactived(id);
|
||||
if (wiimotedev_notification_) {
|
||||
if (actived_)
|
||||
emit WiiremoteActived(id); else
|
||||
emit WiiremoteDeactived(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (actived_ || !wiimotedev_active_) {
|
||||
switch (actions_.value(buttons, 0xff)) {
|
||||
switch (actions_.value(buttons, ActionNone)) {
|
||||
case PlayerNextTrack: player_->Next(); break;
|
||||
case PlayerPreviousTrack: player_->Previous(); break;
|
||||
case PlayerPlay: player_->Play(); break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user