Fix
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run

https://github.com/2dust/v2rayN/issues/7244
This commit is contained in:
2dust 2025-05-07 14:28:55 +08:00
parent 897a4e5635
commit 82b366cd9b
6 changed files with 38 additions and 10 deletions

View file

@ -43,7 +43,7 @@ public partial class App : Application
{ {
if (e.ExceptionObject != null) if (e.ExceptionObject != null)
{ {
Logging.SaveLog("CurrentDomain_UnhandledException", (Exception)e.ExceptionObject!); Logging.SaveLog("CurrentDomain_UnhandledException", (Exception)e.ExceptionObject);
} }
} }

View file

@ -51,12 +51,19 @@ public partial class ClashConnectionsView : ReactiveUserControl<ClashConnections
} }
private void AutofitColumnWidth() private void AutofitColumnWidth()
{
try
{ {
foreach (var it in lstConnections.Columns) foreach (var it in lstConnections.Columns)
{ {
it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto); it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto);
} }
} }
catch (Exception ex)
{
Logging.SaveLog("ClashConnectionsView", ex);
}
}
private void btnClose_Click(object? sender, RoutedEventArgs e) private void btnClose_Click(object? sender, RoutedEventArgs e)
{ {

View file

@ -344,12 +344,19 @@ public partial class ProfilesView : ReactiveUserControl<ProfilesViewModel>
} }
private void AutofitColumnWidth() private void AutofitColumnWidth()
{
try
{ {
foreach (var it in lstProfiles.Columns) foreach (var it in lstProfiles.Columns)
{ {
it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto); it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto);
} }
} }
catch (Exception ex)
{
Logging.SaveLog("ProfilesView", ex);
}
}
private void TxtServerFilter_KeyDown(object? sender, KeyEventArgs e) private void TxtServerFilter_KeyDown(object? sender, KeyEventArgs e)
{ {

View file

@ -56,7 +56,7 @@ public partial class App : Application
{ {
if (e.ExceptionObject != null) if (e.ExceptionObject != null)
{ {
Logging.SaveLog("CurrentDomain_UnhandledException", (Exception)e.ExceptionObject!); Logging.SaveLog("CurrentDomain_UnhandledException", (Exception)e.ExceptionObject);
} }
} }

View file

@ -54,12 +54,19 @@ public partial class ClashConnectionsView
} }
private void AutofitColumnWidth() private void AutofitColumnWidth()
{
try
{ {
foreach (var it in lstConnections.Columns) foreach (var it in lstConnections.Columns)
{ {
it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto); it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto);
} }
} }
catch (Exception ex)
{
Logging.SaveLog("ClashConnectionsView", ex);
}
}
private void btnClose_Click(object sender, System.Windows.RoutedEventArgs e) private void btnClose_Click(object sender, System.Windows.RoutedEventArgs e)
{ {

View file

@ -322,12 +322,19 @@ public partial class ProfilesView
} }
private void AutofitColumnWidth() private void AutofitColumnWidth()
{
try
{ {
foreach (var it in lstProfiles.Columns) foreach (var it in lstProfiles.Columns)
{ {
it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto); it.Width = new DataGridLength(1, DataGridLengthUnitType.Auto);
} }
} }
catch (Exception ex)
{
Logging.SaveLog("ProfilesView", ex);
}
}
private void TxtServerFilter_PreviewKeyDown(object sender, KeyEventArgs e) private void TxtServerFilter_PreviewKeyDown(object sender, KeyEventArgs e)
{ {