mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 运行时禁止切换标签页
This commit is contained in:
@@ -243,6 +243,11 @@ public partial class CopilotViewModel : Screen
|
||||
{
|
||||
get => _copilotTabIndex;
|
||||
set {
|
||||
if (!Idle)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!SetAndNotify(ref _copilotTabIndex, value))
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
<TabControl
|
||||
HorizontalAlignment="Center"
|
||||
BorderThickness="0"
|
||||
IsEnabled="{Binding Idle}"
|
||||
SelectedIndex="{Binding CopilotTabIndex}"
|
||||
Style="{StaticResource TabControlSliding}">
|
||||
<TabControl.Template>
|
||||
|
||||
Reference in New Issue
Block a user