mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 10:27:21 +00:00
Fixed assistants undoing your changes while a run you left continues (#1111)
This commit is contained in:
1 parent
31c271eb7b
commit
7f72da628e
8 files changed
+322
-6
No files matched your search
+14
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user