添加ico格式的自定义图标支持

This commit is contained in:
ShiinaRinne 2024-01-02 15:03:21 +08:00
parent 2ca34fb9ad
commit 78625d82ae

View file

@ -132,10 +132,10 @@ namespace v2rayN.Views
private void btnBrowse_Click(object sender, System.Windows.RoutedEventArgs e) private void btnBrowse_Click(object sender, System.Windows.RoutedEventArgs e)
{ {
var openFileDialog1 = new OpenFileDialog(); var openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "PNG|*.png"; openFileDialog1.Filter = "PNG,ICO|*.png;*.ico";
openFileDialog1.ShowDialog(); openFileDialog1.ShowDialog();
txtCustomIcon.Text = openFileDialog1.FileName; txtCustomIcon.Text = openFileDialog1.FileName;
} }
} }
} }