Skip to content

Commit

Permalink
fix: 修复异步查询结果调用无法保存查询文本的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SlimeNull committed Sep 11, 2024
1 parent 2320cbe commit ca5223d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CurvaLauncher/Models/QueryResultModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public void SetFallbackIcon(Func<ImageSource> iconFactory)
[RelayCommand]
public async Task Invoke()
{
App.ServiceProvider
.GetRequiredService<IMessenger>()
.Send(SaveQueryMessage.Instance);

if (_rawQueryResult is ISyncQueryResult syncQueryResult)
{
try
Expand Down Expand Up @@ -80,10 +84,6 @@ public async Task Invoke()
}
}

App.ServiceProvider
.GetRequiredService<IMessenger>()
.Send(SaveQueryMessage.Instance);

App.CloseLauncher();
}

Expand Down

0 comments on commit ca5223d

Please sign in to comment.