Hide to tray when closing the window

https://github.com/2dust/v2rayN/issues/6076
This commit is contained in:
2dust
2024-11-15 19:50:37 +08:00
parent 5dbce16895
commit 8f6d443104
12 changed files with 45 additions and 4 deletions

View File

@@ -382,7 +382,7 @@ namespace v2rayN.Desktop.Views
#endregion Event
#region UI
public void ShowHideWindow(bool? blShow)
{
var bl = blShow ?? !_config.UiItem.ShowInTaskbar;
@@ -398,7 +398,7 @@ namespace v2rayN.Desktop.Views
}
else
{
if (Utils.IsWindows())
if (_config.UiItem.Hide2TrayWhenClose)
{
this.Hide();
}