This commit is contained in:
2025-09-13 16:13:22 +08:00
parent b29fca1cdb
commit 9b70b952f6
2 changed files with 0 additions and 29 deletions
-9
View File
@@ -2961,15 +2961,6 @@
Width="40" />
</ui:SimpleStackPanel>
</Grid>
<!-- 控制按钮 -->
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,8,0,8">
<Button Name="BtnFloatingWindowInterceptorRestore" Content="恢复所有窗口"
Padding="12,6" Margin="0,0,8,0" Click="BtnFloatingWindowInterceptorRestore_Click"
Background="#FF6C757D" Foreground="White" BorderBrush="#FF5A6268"
FontFamily="Microsoft YaHei UI" FontSize="12" />
</ui:SimpleStackPanel>
<!-- 状态信息 -->
<TextBlock Name="TextBlockFloatingWindowInterceptorStatus" Text="拦截器未启动"
Foreground="#a1a1aa" FontSize="12" Margin="0,4,0,0" />
@@ -323,26 +323,6 @@ namespace Ink_Canvas
LogHelper.WriteLogToFile($"设置拦截规则失败: {ex.Message}", LogHelper.LogType.Error);
}
}
/// <summary>
/// 恢复所有窗口按钮点击
/// </summary>
private void BtnFloatingWindowInterceptorRestore_Click(object sender, RoutedEventArgs e)
{
try
{
if (_floatingWindowInterceptorManager != null)
{
_floatingWindowInterceptorManager.RestoreAllWindows();
UpdateFloatingWindowInterceptorUI();
}
}
catch (Exception ex)
{
LogHelper.WriteLogToFile($"恢复所有窗口失败: {ex.Message}", LogHelper.LogType.Error);
}
}
#endregion
}
}