Skip to content

Commit

Permalink
自动检测更新方法移入窗口激活事件
Browse files Browse the repository at this point in the history
  • Loading branch information
MiracleLau committed Jul 19, 2022
1 parent 7d9532e commit 68c0d0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RadYanFoFaViewer/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Width="900" Height="580"
Icon="/Assets/logo.png"
WindowStartupLocation="CenterScreen"
Initialized="StyledElement_OnInitialized"
Activated="WindowBase_OnActivated"
PropertyChanged="AvaloniaObject_OnPropertyChanged"
Title="RadYanFoFaViewer - By Radiation">

Expand Down
3 changes: 1 addition & 2 deletions RadYanFoFaViewer/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ private void AvaloniaObject_OnPropertyChanged(object? sender, AvaloniaPropertyCh
if (searchViewControl is not null) searchViewControl.Height = height;
}
}

private void StyledElement_OnInitialized(object? sender, EventArgs e)
private void WindowBase_OnActivated(object? sender, EventArgs e)
{
Update.AutoCheckUpdate(() => { }, () => { }, true);
}
Expand Down

0 comments on commit 68c0d0d

Please sign in to comment.