Add icon for PAC mode (#5876)
Co-authored-by: author <mail@example.com>
This commit is contained in:
BIN
v2rayN/v2rayN.Desktop/Assets/NotifyIcon4.ico
Normal file
BIN
v2rayN/v2rayN.Desktop/Assets/NotifyIcon4.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
@@ -48,13 +48,16 @@ namespace v2rayN.Desktop.Common
|
||||
break;
|
||||
|
||||
case ESysProxyType.ForcedChange:
|
||||
case ESysProxyType.Pac:
|
||||
index = 2;
|
||||
break;
|
||||
|
||||
case ESysProxyType.Unchanged:
|
||||
index = 3;
|
||||
break;
|
||||
|
||||
case ESysProxyType.Pac:
|
||||
index = 4;
|
||||
break;
|
||||
}
|
||||
var uri = new Uri($"avares://{Assembly.GetExecutingAssembly().GetName().Name}/Assets/NotifyIcon{index}.ico");
|
||||
using var bitmap = new Bitmap(AssetLoader.Open(uri));
|
||||
|
||||
Reference in New Issue
Block a user