Skip to content

Commit

Permalink
修复 节点连接器“切换自输入/连接器”文字不显示
Browse files Browse the repository at this point in the history
  • Loading branch information
MakesYT committed Jul 23, 2024
1 parent 31c8419 commit a389c55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Core.Linux/HotKeyImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ public bool Modify(HotKeyModel hotKeyModel)
throw new NotImplementedException();
}

public bool IsActive(string uuid)
{
throw new NotImplementedException();
}

public IEnumerable<HotKeyModel> GetAllRegistered()
{
throw new NotImplementedException();
Expand Down
13 changes: 6 additions & 7 deletions KitopiaAvalonia/Windows/TaskEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -1166,16 +1166,15 @@
</controls2:Node.Header>
<controls2:Node.InputConnectorTemplate>
<DataTemplate DataType="{x:Type customScenario:ConnectorItem}">

<ContentPresenter Content="{Binding .}" Name="ContentPresenter1">
<ContentPresenter.ContextFlyout>
<MenuFlyout>
<controls:FAMenuFlyout>
<!-- ReSharper disable once Xaml.RedundantResource -->
<MenuItem Header="切换自输入/连接器"
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
Command="{Binding $parent[controls2:NodifyEditor].((taskEditor1:TaskEditorViewModel)DataContext).SwitchConnectorCommand}"
CommandParameter="{Binding #ContentPresenter1 }" />
</MenuFlyout>
<controls:MenuFlyoutItem Text="切换自输入/连接器"
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
Command="{Binding $parent[controls2:NodifyEditor].((taskEditor1:TaskEditorViewModel)DataContext).SwitchConnectorCommand}"
CommandParameter="{Binding #ContentPresenter1 }" />
</controls:FAMenuFlyout>
</ContentPresenter.ContextFlyout>
<ContentPresenter.DataTemplates>
<pages:MyDataTemplateSelector>
Expand Down

0 comments on commit a389c55

Please sign in to comment.