This commit is contained in:
2dust 2025-10-30 20:00:15 +08:00
parent c2ef3a4a8c
commit 12fc3e9566

View file

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