Avoid unnecessary update to main preview when opening first detail window, fixes #4368
This commit is contained in:
@@ -90,7 +90,7 @@ ImProcCoordinator::ImProcCoordinator ()
|
||||
pW (-1), pH (-1),
|
||||
plistener (nullptr), imageListener (nullptr), aeListener (nullptr), acListener (nullptr), abwListener (nullptr), awbListener (nullptr), frameCountListener (nullptr), imageTypeListener (nullptr), actListener (nullptr), adnListener (nullptr), awavListener (nullptr), dehaListener (nullptr), hListener (nullptr),
|
||||
resultValid (false), lastOutputProfile ("BADFOOD"), lastOutputIntent (RI__COUNT), lastOutputBPC (false), thread (nullptr), changeSinceLast (0), updaterRunning (false), destroying (false), utili (false), autili (false),
|
||||
butili (false), ccutili (false), cclutili (false), clcutili (false), opautili (false), wavcontlutili (false), colourToningSatLimit (0.f), colourToningSatLimitOpacity (0.f)
|
||||
butili (false), ccutili (false), cclutili (false), clcutili (false), opautili (false), wavcontlutili (false), colourToningSatLimit (0.f), colourToningSatLimitOpacity (0.f), highQualityComputed (false)
|
||||
{}
|
||||
|
||||
void ImProcCoordinator::assign (ImageSource* imgsrc)
|
||||
@@ -1388,5 +1388,26 @@ void ImProcCoordinator::endUpdateParams (int changeFlags)
|
||||
startProcessing ();
|
||||
}
|
||||
|
||||
bool ImProcCoordinator::getHighQualComputed() {
|
||||
// this function may only be called from detail windows
|
||||
if(!highQualityComputed) {
|
||||
if(options.prevdemo == PD_Sidecar) {
|
||||
// we already have high quality preview
|
||||
setHighQualComputed();
|
||||
} else {
|
||||
for (size_t i = 0; i < crops.size() - 1; ++i) { // -1, because last entry is the freshly created detail window
|
||||
if (crops[i]->get_skip() == 1 ) { // there is at least one crop with skip == 1 => we already have high quality preview
|
||||
setHighQualComputed();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return highQualityComputed;
|
||||
}
|
||||
|
||||
void ImProcCoordinator::setHighQualComputed() {
|
||||
highQualityComputed = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user