Fixed assistants undoing your changes while a run you left continues (#1111)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-25 21:09:23 +01:00
1 parent 31c271eb7b
commit 7f72da628e
8 files changed
+322 -6

No files matched your search

@@ -217,7 +217,20 @@ public partial class SlideAssistant
return;
}
// A variant of another template means nothing for this one, nor do choices for its slides:
this.FitChoicesToTemplate();
}
/// <summary>
/// Fits the color variant and the choices for the slides to the loaded template.
/// </summary>
/// <remarks>
/// A variant of another template means nothing for this one, nor do choices for its slides.
/// </remarks>
private void FitChoicesToTemplate()
{
if (this.template is null)
return;
if (this.variantLabel is null || !this.template.VariantLabels.Contains(this.variantLabel))
this.variantLabel = this.template.VariantLabels.FirstOrDefault();