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 <ui:TeachingTip
Target="{Binding #PART_HelpButton}" Target="{Binding #PART_HelpButton}"
Title="{x:Static lang:Resources.TeachingTip_InferencePromptHelpButton}" Title="{x:Static lang:Resources.TeachingTip_InferencePromptHelpButton}"
IsOpen="{Binding IsHelpButtonTeachingTipOpen}"/> IsOpen="{Binding IsHelpButtonTeachingTipOpen, Mode=TwoWay}"/>
</Panel> </Panel>
<Button <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)) if (!settingsManager.Settings.SeenTeachingTips.Contains(TeachingTip.InferencePromptHelpButtonTip))
{ {
IsHelpButtonTeachingTipOpen = true; IsHelpButtonTeachingTipOpen = true;
settingsManager.Transaction(settings =>
{
settings.SeenTeachingTips.Add(TeachingTip.InferencePromptHelpButtonTip);
});
} }
} }

Loading…
Cancel
Save