Reenable batch queue interface on queue length notification

This removes the need for canStartNext() to do any UI updates.
This commit is contained in:
George Hilliard
2018-10-26 00:52:15 -05:00
parent 52c943ca0e
commit 7d5fe6d1c8
3 changed files with 18 additions and 18 deletions

View File

@@ -245,7 +245,7 @@ void BatchQueuePanel::updateTab (int qsize, int forceOrientation)
}
}
void BatchQueuePanel::queueSizeChanged(int qsize, bool queueEmptied, bool queueError, const Glib::ustring& queueErrorMessage)
void BatchQueuePanel::queueSizeChanged(int qsize, bool queueRunning, bool queueError, const Glib::ustring& queueErrorMessage)
{
updateTab (qsize);
@@ -255,12 +255,14 @@ void BatchQueuePanel::queueSizeChanged(int qsize, bool queueEmptied, bool queueE
qStartStop->set_sensitive(true);
}
if (queueEmptied || queueError) {
if (!queueRunning) {
stopBatchProc ();
fdir->set_sensitive (true);
fformat->set_sensitive (true);
SoundManager::playSoundAsync(options.sndBatchQueueDone);
if (qsize == 0) {
SoundManager::playSoundAsync(options.sndBatchQueueDone);
}
}
if (queueError) {