修复:双击表头弹出编辑窗口的问题

This commit is contained in:
fonaix 2024-11-04 08:36:26 +08:00
parent e72a7ee2bc
commit b7009a7cfb

View file

@ -189,6 +189,8 @@ namespace v2rayN.Desktop.Views
private void LstProfiles_DoubleTapped(object? sender, Avalonia.Input.TappedEventArgs e) private void LstProfiles_DoubleTapped(object? sender, Avalonia.Input.TappedEventArgs e)
{ {
var source = e.Source as Border;
if (source == null || source.Name != "CellBorder") return;
if (_config.UiItem.DoubleClick2Activate) if (_config.UiItem.DoubleClick2Activate)
{ {
ViewModel?.SetDefaultServer(); ViewModel?.SetDefaultServer();