This commit is contained in:
Grace Dolphy 2023-11-06 17:42:12 +08:00 committed by GitHub
commit 0ebc9354f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,9 @@ void QtSystemTrayIcon::SetupMenu(QAction* previous, QAction* play,
menu_->addAction(stop->icon(), stop->text(), stop, SLOT(trigger()));
action_stop_after_this_track_ = menu_->addAction(
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_->addSeparator();
@ -194,6 +197,7 @@ void QtSystemTrayIcon::SetStopped() {
action_stop_->setEnabled(false);
action_stop_after_this_track_->setEnabled(false);
action_stop_after_this_track_->setChecked(false);
action_play_pause_->setIcon(
IconLoader::Load("media-playback-start", IconLoader::Base));
action_play_pause_->setText(tr("Play"));