chore: 加回右键菜单和单次运行

fix #16889
This commit is contained in:
uye
2026-05-28 02:44:16 +08:00
parent 92d939b36c
commit 676c3bda4a
7 changed files with 32 additions and 5 deletions

View File

@@ -108,7 +108,8 @@
<system:String x:Key="OftenUsedGuide">↑ Often Used</system:String>
<system:String x:Key="SometimesUsedGuide">Sometimes Used ↑</system:String>
<system:String x:Key="LinkStartGuide">← Start Tasks</system:String>
<system:String x:Key="HoverActionButtons">↓ Hover to Copy/Rename/Delete</system:String>
<system:String x:Key="HoverActionButtons" xml:space="preserve"> Hover to Copy/Rename/Delete
↓ Right-click gear for more options</system:String>
<system:String x:Key="UserGuide">User Guide</system:String>
<system:String x:Key="GuideDocumentationTitle">📖 Website &amp; Documentation</system:String>
<system:String x:Key="GuideDocumentationPath">You can find MAA's official website and complete documentation at "{key=Settings} - {key=AboutUs} - {key=Website}".</system:String>

View File

@@ -108,7 +108,8 @@
<system:String x:Key="OftenUsedGuide">↑ よく使われる</system:String>
<system:String x:Key="SometimesUsedGuide">あまり使われていない ↑</system:String>
<system:String x:Key="LinkStartGuide">← タスクを開始</system:String>
<system:String x:Key="HoverActionButtons">↓ ホバーでコピー/名前変更/削除</system:String>
<system:String x:Key="HoverActionButtons" xml:space="preserve"> ホバーでコピー/名前変更/削除
↓ 歯車を右クリックで操作一覧</system:String>
<system:String x:Key="UserGuide">使用ガイド</system:String>
<system:String x:Key="GuideDocumentationTitle">📖 公式サイトとドキュメント</system:String>
<system:String x:Key="GuideDocumentationPath">MAA の公式サイトと完全なドキュメントは「{key=Settings} - {key=AboutUs} - {key=Website}」でご覧いただけます。</system:String>

View File

@@ -108,7 +108,8 @@
<system:String x:Key="OftenUsedGuide">↑ 자주 쓰는 설정</system:String>
<system:String x:Key="SometimesUsedGuide">가끔 쓰는 설정 ↑</system:String>
<system:String x:Key="LinkStartGuide">← 연결 및 동작 시작</system:String>
<system:String x:Key="HoverActionButtons">↓ 마우스 오버하여 복사/이름 변경/삭제</system:String>
<system:String x:Key="HoverActionButtons" xml:space="preserve"> 마우스 오버하여 복사/이름 변경/삭제
↓ 기어 우클릭으로 더 많은 작업</system:String>
<system:String x:Key="UserGuide">사용 가이드</system:String>
<system:String x:Key="GuideDocumentationTitle">📖 공식 웹사이트 및 문서</system:String>
<system:String x:Key="GuideDocumentationPath">"{key=Settings} - {key=AboutUs} - {key=Website}"에서 MAA의 공식 웹사이트와 전체 문서를 찾을 수 있습니다.</system:String>

View File

@@ -108,7 +108,8 @@
<system:String x:Key="OftenUsedGuide">↑ 常用的</system:String>
<system:String x:Key="SometimesUsedGuide">不常用的 ↑</system:String>
<system:String x:Key="LinkStartGuide">← 开始任务</system:String>
<system:String x:Key="HoverActionButtons">↓ 悬停显示 复制/重命名/删除</system:String>
<system:String x:Key="HoverActionButtons" xml:space="preserve"> 悬停显示 复制/重命名/删除
↓ 右键齿轮显示更多操作</system:String>
<system:String x:Key="UserGuide">使用指引</system:String>
<system:String x:Key="GuideDocumentationTitle">📖 官网与文档</system:String>
<system:String x:Key="GuideDocumentationPath">您可以在「{key=Settings} - {key=AboutUs} - {key=Website}」找到 MAA 的官方网站和完整文档。</system:String>

View File

@@ -108,7 +108,8 @@
<system:String x:Key="OftenUsedGuide">↑ 常用的</system:String>
<system:String x:Key="SometimesUsedGuide">不常用的 ↑</system:String>
<system:String x:Key="LinkStartGuide">← 開始任務</system:String>
<system:String x:Key="HoverActionButtons">↓ 懸停顯示 複製/重新命名/刪除</system:String>
<system:String x:Key="HoverActionButtons" xml:space="preserve"> 懸停顯示 複製/重新命名/刪除
↓ 右鍵齒輪顯示更多操作</system:String>
<system:String x:Key="UserGuide">使用指引</system:String>
<system:String x:Key="GuideDocumentationTitle">📖 官網與文件</system:String>
<system:String x:Key="GuideDocumentationPath">您可以在「{key=Settings} - {key=AboutUs} - {key=Website}」找到 MAA 的官方網站和完整文件。</system:String>

View File

@@ -223,6 +223,7 @@
hc:VisualElement.HighlightForeground="{DynamicResource PrimaryBrush}"
Background="Transparent"
BorderThickness="0"
ContextMenuService.IsEnabled="{Binding DataContext.Idle, RelativeSource={RelativeSource AncestorType=UserControl}}"
GroupName="TaskSettings"
IsChecked="{Binding EnableSetting}"
Style="{DynamicResource RadioGroupItemSingle}">
@@ -251,10 +252,23 @@
<RadioButton.ToolTip>
<ToolTip>
<StackPanel>
<TextBlock FontWeight="SemiBold" Text="{DynamicResource LeftClick}" />
<TextBlock Text="{DynamicResource TaskSettings}" />
<TextBlock FontWeight="SemiBold" Text="{DynamicResource RightClick}" />
<TextBlock Text="{DynamicResource RunTaskOnce}" />
</StackPanel>
</ToolTip>
</RadioButton.ToolTip>
<RadioButton.ContextMenu>
<ContextMenu Width="150">
<MenuItem
Command="{s:Action RunTaskOnce,
Target={x:Static helper:Instances.TaskQueueViewModel}}"
CommandParameter="{Binding PlacementTarget.DataContext, RelativeSource={RelativeSource AncestorType=ContextMenu}}"
Header="{DynamicResource RunTaskOnce}" />
</ContextMenu>
</RadioButton.ContextMenu>
</RadioButton>
</hc:ButtonGroup>
</StackPanel>

View File

@@ -479,9 +479,17 @@
<StackPanel>
<TextBlock FontWeight="SemiBold" Text="{DynamicResource LeftClick}" />
<TextBlock Text="{DynamicResource TaskSettings}" />
<TextBlock FontWeight="SemiBold" Text="{DynamicResource RightClick}" />
<TextBlock Text="{DynamicResource RunTaskOnce}" />
</StackPanel>
</ToolTip>
</RadioButton.ToolTip>
<RadioButton.ContextMenu>
<ContextMenu>
<MenuItem Header="{DynamicResource RunTaskOnce}" />
</ContextMenu>
</RadioButton.ContextMenu>
</RadioButton>
</hc:ButtonGroup>
</StackPanel>