Browse Source

twoway?

pull/629/head
JT 7 months ago
parent
commit
68a9968794
  1. 2
      StabilityMatrix.Avalonia/Controls/Inference/PromptCard.axaml
  2. 4
      StabilityMatrix.Avalonia/ViewModels/Inference/PromptCardViewModel.cs

2
StabilityMatrix.Avalonia/Controls/Inference/PromptCard.axaml

@ -72,7 +72,7 @@
<ui:TeachingTip
Target="{Binding #PART_HelpButton}"
Title="{x:Static lang:Resources.TeachingTip_InferencePromptHelpButton}"
IsOpen="{Binding IsHelpButtonTeachingTipOpen}"/>
IsOpen="{Binding IsHelpButtonTeachingTipOpen, Mode=TwoWay}"/>
</Panel>
<Button

4
StabilityMatrix.Avalonia/ViewModels/Inference/PromptCardViewModel.cs

@ -104,10 +104,6 @@ public partial class PromptCardViewModel : LoadableViewModelBase, IParametersLoa
if (!settingsManager.Settings.SeenTeachingTips.Contains(TeachingTip.InferencePromptHelpButtonTip))
{
IsHelpButtonTeachingTipOpen = true;
settingsManager.Transaction(settings =>
{
settings.SeenTeachingTips.Add(TeachingTip.InferencePromptHelpButtonTip);
});
}
}

Loading…
Cancel
Save