Compare commits

..

No commits in common. "bf3703bca1fb9dac6bfbe8c55c6b349668343fcd" and "c2ef3a4a8c8ea2f2aa1cba8921c44f78f0c278a5" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View file

@ -116,7 +116,7 @@ jobs:
fetch-depth: '0'
- name: Restore build artifacts
uses: actions/download-artifact@v6
uses: actions/download-artifact@v4
with:
name: v2rayN-linux
path: ${{ github.workspace }}/v2rayN/Release

View file

@ -168,7 +168,7 @@ public partial class MainWindow : WindowBase<MainWindowViewModel>
}
menuAddServerViaScan.IsVisible = false;
if (_config.UiItem.AutoHideStartup && Utils.IsWindows())
if (_config.UiItem.AutoHideStartup)
{
this.WindowState = WindowState.Minimized;
}
@ -402,9 +402,9 @@ public partial class MainWindow : WindowBase<MainWindowViewModel>
public void ShowHideWindow(bool? blShow)
{
var bl = blShow ??
(Utils.IsLinux()
Utils.IsLinux()
? (!_config.UiItem.ShowInTaskbar ^ (WindowState == WindowState.Minimized))
: !_config.UiItem.ShowInTaskbar);
: !_config.UiItem.ShowInTaskbar;
if (bl)
{
this.Show();