Ξ-W2-T1 re-review cleanup: soften ordering claim, bound bake guard fields, dedup gain/play-mode rationale, quiet foreign WrongProject noise
This commit is contained in:
@@ -308,11 +308,19 @@ void RunResampleBake(ReaSamplerSession& session) {
|
||||
outcome = landOne(session, open.dir, *request);
|
||||
if (outcome.status == BakeStatus::Ok) ++landedCount;
|
||||
}
|
||||
answers.push_back(Answer{
|
||||
open.proj, key, wire::encodeBakeOutcome(outcome),
|
||||
outcome.status == BakeStatus::Ok
|
||||
? std::string{}
|
||||
: "ReaSampler resample: " + outcome.message + ".\n"});
|
||||
// A WrongProject request left sitting in a tab this call did not come from
|
||||
// prints again on every OTHER tab's bake, since the scan revisits every open
|
||||
// project each time. `active` is this call's own proxy for "the invoking tab"
|
||||
// (see the three-projects comment above) — only that tab's own refusal is fresh
|
||||
// feedback to a user who just clicked bake; every other one is a rescan repeat.
|
||||
const bool ownRequest = static_cast<const void*>(open.proj) == active;
|
||||
std::string console;
|
||||
if (outcome.status != BakeStatus::Ok &&
|
||||
(outcome.status != BakeStatus::WrongProject || ownRequest)) {
|
||||
console = "ReaSampler resample: " + outcome.message + ".\n";
|
||||
}
|
||||
answers.push_back(
|
||||
Answer{open.proj, key, wire::encodeBakeOutcome(outcome), console});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user