perf: 优化完成后动作仅一次提示文本的显示和描述 (#10182)

* docs: 仅一次

* docs: 仅一次

* docs: 仅一次

* perf: 优化提示显示

* chore: 优化文本
This commit is contained in:
status102
2024-08-10 15:02:56 +08:00
committed by GitHub
parent 3bbbdabfdb
commit a4596cd0de
6 changed files with 28 additions and 7 deletions

View File

@@ -422,7 +422,9 @@ Only supports Official(CN) and Bilibili server. Login account is not supported.<
<system:String x:Key="Hibernate">Hibernate</system:String>
<system:String x:Key="Shutdown">Shutdown</system:String>
<system:String x:Key="Once">Only once*</system:String>
<system:String x:Key="PostActionOnceTip">If active, changes will NOT be saved until next run.</system:String>
<system:String x:Key="PostActionOnceTip" xml:space="preserve">If you want to execute only once, please check Only once first.
When Only once is checked, the action will be restored to the state before Only once was checked after execution.
When you right-click the action below, it will activate/cancel the selected state of Only once synchronously.</system:String>
<system:String x:Key="IfNoOtherMaa">If no other running MAA</system:String>
<system:String x:Key="BackToAndroidHome">Return to home screen of emulator</system:String>
<system:String x:Key="LinkStart">Link Start!</system:String>

View File

@@ -421,7 +421,9 @@
<system:String x:Key="Hibernate">休止状態にする</system:String>
<system:String x:Key="Shutdown">シャットダウン</system:String>
<system:String x:Key="Once">1回のみ*</system:String>
<system:String x:Key="PostActionOnceTip">有効にすると、変更は次回の実行まで保存されません。</system:String>
<system:String x:Key="PostActionOnceTip" xml:space="preserve">一度だけ実行したい場合は、まず「一度だけ」をチェックしてください。
「一度だけ」をチェックすると、実行後にアクションは「一度だけ」をチェックする前の状態に戻ります。
下のアクションを右クリックすると、選択した「一度だけ」の状態が同期的に有効/解除されます。</system:String>
<system:String x:Key="IfNoOtherMaa">他のMAAがない場合</system:String>
<system:String x:Key="BackToAndroidHome">エミュレータのホーム画面に戻る</system:String>
<system:String x:Key="LinkStart">Link Start!</system:String>

View File

@@ -421,7 +421,9 @@ OF-1을 해금하지 않았다면 선택하지 말아 주세요.</system:String>
<system:String x:Key="Hibernate">절전 모드</system:String>
<system:String x:Key="Shutdown">시스템 종료</system:String>
<system:String x:Key="Once">한 번만*</system:String>
<system:String x:Key="PostActionOnceTip">활성화된 경우, 다음 실행까지 변경 사항이 저장되지 않습니다.</system:String>
<system:String x:Key="PostActionOnceTip" xml:space="preserve">한 번만 실행하려면 먼저 Only once를 체크하세요.
Only once가 체크되면 실행 후 Only once가 체크되기 전 상태로 작업이 복원됩니다.
아래 작업을 마우스 오른쪽 버튼으로 클릭하면 선택한 Only once 상태가 동기적으로 활성화/취소됩니다.</system:String>
<system:String x:Key="IfNoOtherMaa">다른 MAA가 없는 경우</system:String>
<system:String x:Key="BackToAndroidHome">에뮬레이터가 홈 화면으로 돌아갑니다</system:String>
<system:String x:Key="LinkStart">Link Start!</system:String>

View File

@@ -422,7 +422,9 @@
<system:String x:Key="Hibernate">休眠</system:String>
<system:String x:Key="Shutdown">关机</system:String>
<system:String x:Key="Once">仅一次*</system:String>
<system:String x:Key="PostActionOnceTip">勾选后修改不会保留至下次</system:String>
<system:String x:Key="PostActionOnceTip" xml:space="preserve">如想只执行一次,请先勾选仅一次
勾选仅一次时,执行动作后将恢复至勾选仅一次前一刻的状态
右键点击下方动作时,会同步 激活/取消 仅一次的选中状态</system:String>
<system:String x:Key="IfNoOtherMaa">无其他 MAA 时</system:String>
<system:String x:Key="BackToAndroidHome">返回 模拟器 主屏幕</system:String>
<system:String x:Key="LinkStart">Link Start!</system:String>

View File

@@ -412,7 +412,9 @@
<system:String x:Key="Hibernate">休眠</system:String>
<system:String x:Key="Shutdown">關機</system:String>
<system:String x:Key="Once">僅一次*</system:String>
<system:String x:Key="PostActionOnceTip">勾選後修改不會保留至下次</system:String>
<system:String x:Key="PostActionOnceTip" xml:space="preserve">如想只執行一次,請先勾選僅一次
勾選僅一次時,執行動作後將恢復至勾選僅一次前一刻的狀態
右鍵點選下方動作時,會同步 啟動/取消 僅一次的選取狀態</system:String>
<system:String x:Key="IfNoOtherMaa">無其他 MAA 時</system:String>
<system:String x:Key="BackToAndroidHome">返回 模擬器 主荧幕</system:String>
<system:String x:Key="LinkStart">Link Start!</system:String>

View File

@@ -20,8 +20,19 @@
mc:Ignorable="d">
<StackPanel>
<StackPanel Visibility="{c:Binding !TaskSettingVisibilities.EnableAdvancedSettings}">
<CheckBox Margin="0,10" IsChecked="{Binding PostActionSetting.Once}">
<controls:TextBlock Text="{DynamicResource Once}" ToolTip="{DynamicResource PostActionOnceTip}" />
<CheckBox
Margin="0,10"
HorizontalAlignment="Left"
IsChecked="{Binding PostActionSetting.Once}">
<controls:TextBlock
hc:Poptip.Content="{DynamicResource PostActionOnceTip}"
hc:Poptip.HitMode="None"
hc:Poptip.HorizontalOffset="-200"
hc:Poptip.VerticalOffset="6"
hc:Poptip.IsOpen="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=FindAncestor, AncestorLevel=1, AncestorType=CheckBox}}"
hc:Poptip.Placement="Bottom"
Text="{DynamicResource Once}"
TextWrapping="Wrap" />
</CheckBox>
<hc:Divider />
<CheckBox