Removed the Hide to tray when closing the window feature for Windows version

https://github.com/2dust/v2rayN/issues/6726
This commit is contained in:
2dust
2025-02-19 10:42:31 +08:00
parent eee87ded29
commit bb8eef3bf5
3 changed files with 22 additions and 10 deletions

View File

@@ -414,18 +414,17 @@ namespace v2rayN.Desktop.Views
}
else
{
if (Utils.IsOSX() || _config.UiItem.Hide2TrayWhenClose)
{
foreach (var ownedWindow in this.OwnedWindows)
{
ownedWindow.Close();
}
this.Hide();
}
else
if (Utils.IsLinux() && _config.UiItem.Hide2TrayWhenClose == false)
{
this.WindowState = WindowState.Minimized;
return;
}
foreach (var ownedWindow in this.OwnedWindows)
{
ownedWindow.Close();
}
this.Hide();
}
_config.UiItem.ShowInTaskbar = bl;