Merge 60e8e42851
into 5968648aa1
This commit is contained in:
commit
0ebc9354f8
|
@ -116,6 +116,9 @@ void QtSystemTrayIcon::SetupMenu(QAction* previous, QAction* play,
|
||||||
menu_->addAction(stop->icon(), stop->text(), stop, SLOT(trigger()));
|
menu_->addAction(stop->icon(), stop->text(), stop, SLOT(trigger()));
|
||||||
action_stop_after_this_track_ = menu_->addAction(
|
action_stop_after_this_track_ = menu_->addAction(
|
||||||
stop_after->icon(), stop_after->text(), stop_after, SLOT(trigger()));
|
stop_after->icon(), stop_after->text(), stop_after, SLOT(trigger()));
|
||||||
|
action_stop_after_this_track_->setCheckable(true);
|
||||||
|
action_stop_after_this_track_->setChecked(stop_after->isChecked());
|
||||||
|
|
||||||
menu_->addAction(next->icon(), next->text(), next, SLOT(trigger()));
|
menu_->addAction(next->icon(), next->text(), next, SLOT(trigger()));
|
||||||
|
|
||||||
menu_->addSeparator();
|
menu_->addSeparator();
|
||||||
|
@ -194,6 +197,7 @@ void QtSystemTrayIcon::SetStopped() {
|
||||||
|
|
||||||
action_stop_->setEnabled(false);
|
action_stop_->setEnabled(false);
|
||||||
action_stop_after_this_track_->setEnabled(false);
|
action_stop_after_this_track_->setEnabled(false);
|
||||||
|
action_stop_after_this_track_->setChecked(false);
|
||||||
action_play_pause_->setIcon(
|
action_play_pause_->setIcon(
|
||||||
IconLoader::Load("media-playback-start", IconLoader::Base));
|
IconLoader::Load("media-playback-start", IconLoader::Base));
|
||||||
action_play_pause_->setText(tr("Play"));
|
action_play_pause_->setText(tr("Play"));
|
||||||
|
|
Loading…
Reference in New Issue