Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Oct 22, 2024
1 parent 360f557 commit 6955e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,15 @@ public void ResetAllSettings()
MessageBox.Show(Resources.ResetCompleted);
}

public async Task CheckUpdate()
public async Task CheckUpdate(ActionExecutionContext e)
{
using var _ = e.DisableSourceByDisposable();
await ProgramUpdater.CheckUpdatable();
}

public async Task OpenShowNewVersionDialog(ActionExecutionContext e)
{
using var _ = e.DisableSourceByDisposable();
await IoC.Get<IWindowManager>().ShowWindowAsync(new ShowNewVersionDialogViewModel());
await Task.Delay(4000);
}

public void UnRegisterNyagekiAssociations()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
Padding="10,5"
HorizontalAlignment="Left"
VerticalAlignment="Center"
cal:Message.Attach="CheckUpdate()"
cal:Message.Attach="CheckUpdate($executioncontext)"
Content="检查更新" />
<TextBlock
Margin="5,0"
Expand Down

0 comments on commit 6955e2d

Please sign in to comment.