make the batch queue start/stop switch insensitive when there are no pending images in the queue
This commit is contained in:
parent
5cb6a0ebaf
commit
eb3c7f13ae
@ -249,6 +249,12 @@ void BatchQueuePanel::queueSizeChanged (int qsize, bool queueEmptied, bool queue
|
|||||||
{
|
{
|
||||||
updateTab ( qsize);
|
updateTab ( qsize);
|
||||||
|
|
||||||
|
if (qsize == 0 || (qsize == 1 && !fdir->get_sensitive())) {
|
||||||
|
qStartStop->set_sensitive(false);
|
||||||
|
} else {
|
||||||
|
qStartStop->set_sensitive(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (queueEmptied || queueError) {
|
if (queueEmptied || queueError) {
|
||||||
stopBatchProc ();
|
stopBatchProc ();
|
||||||
fdir->set_sensitive (true);
|
fdir->set_sensitive (true);
|
||||||
@ -283,6 +289,9 @@ void BatchQueuePanel::startBatchProc ()
|
|||||||
if (batchQueue->hasJobs()) {
|
if (batchQueue->hasJobs()) {
|
||||||
fdir->set_sensitive (false);
|
fdir->set_sensitive (false);
|
||||||
fformat->set_sensitive (false);
|
fformat->set_sensitive (false);
|
||||||
|
if (batchQueue->getEntries().size() == 1) {
|
||||||
|
qStartStop->set_sensitive(false);
|
||||||
|
}
|
||||||
saveOptions();
|
saveOptions();
|
||||||
batchQueue->startProcessing ();
|
batchQueue->startProcessing ();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user