mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-03 04:37:33 +01:00
Fix comments and reduce translator's burden.
This commit is contained in:
parent
4cb3775366
commit
b0e6062a4a
@ -1524,7 +1524,7 @@ void Playlist::StopAfter(int row) {
|
||||
else
|
||||
stop_after_ = index(row, 0);
|
||||
|
||||
// stop_after_.isValid() == true when there there is a stop placed
|
||||
// stop_after_.isValid() == true when there is a stop placed
|
||||
// somewhere on the playlist. Emit a StopAfterToggled signal that
|
||||
// reflects this.
|
||||
emit StopAfterToggled(stop_after_.isValid());
|
||||
|
@ -690,9 +690,7 @@ MainWindow::MainWindow(Application* app,
|
||||
app_->playlist_manager()->Init(app_->library_backend(), app_->playlist_backend(),
|
||||
ui_->playlist_sequence, ui_->playlist);
|
||||
|
||||
// Connect the playlist signal "StopAfterToggled with the
|
||||
// StopAfterToggle OSD slot. This must be done after the playlist
|
||||
// has been initialized.
|
||||
// This connection must be done after the playlist has been initialized.
|
||||
connect(app_->playlist_manager()->current(), SIGNAL(StopAfterToggled(bool)),
|
||||
osd_, SLOT(StopAfterToggle(bool)));
|
||||
|
||||
|
@ -167,13 +167,8 @@ void OSD::Stopped() {
|
||||
}
|
||||
|
||||
void OSD::StopAfterToggle(bool stop) {
|
||||
if (stop) {
|
||||
ShowMessage(QCoreApplication::applicationName(),
|
||||
tr("Stop playing after track: On"));
|
||||
} else {
|
||||
ShowMessage(QCoreApplication::applicationName(),
|
||||
tr("Stop playing after track: Off"));
|
||||
}
|
||||
ShowMessage(QCoreApplication::applicationName(),
|
||||
tr("Stop playing after track: %1").arg(stop ? tr("On") : tr("Off")));
|
||||
}
|
||||
|
||||
void OSD::PlaylistFinished() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user