fix: 粘贴作业集不会自动勾选多作业模式

This commit is contained in:
uye
2026-03-28 01:26:07 +08:00
parent 2ba21efd84
commit 47503b50fc
2 changed files with 4 additions and 10 deletions

View File

@@ -1208,9 +1208,6 @@ public partial class CopilotViewModel : Screen
if (!writeToCache)
{// 现在是暂时将所有本地作业不添加到列表
}
else if (CopilotTabIndex is 1)
{ // 保全 不使用多作业列表
}
else if (copilotList)
{
switch (copilot.Difficulty)
@@ -1288,11 +1285,7 @@ public partial class CopilotViewModel : Screen
}
}
if (UseCopilotList)
{
await AddSSSCopilotTaskToList(copilot, CopilotId);
}
await AddSSSCopilotTaskToList(copilot, CopilotId);
return true;
}
@@ -1371,6 +1364,8 @@ public partial class CopilotViewModel : Screen
}
}
UseCopilotList = CopilotTabIndex is 0 or 2;
Log(copilotSet.Name, copilotSet.Description);
_copilotCache = null;
return;

View File

@@ -476,8 +476,7 @@
<StackPanel
Margin="2.5,5"
IsEnabled="{c:Binding 'CopilotTabIndex == 0 or CopilotTabIndex == 2'}"
Orientation="Horizontal"
Visibility="{c:Binding 'CopilotTabIndex != 1'}">
Orientation="Horizontal">
<CheckBox Content="{DynamicResource UseCopilotList}" IsChecked="{Binding UseCopilotList}" />
<controls:TooltipBlock TooltipText="{DynamicResource UseCopilotListTip}" />
</StackPanel>