mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix #431 input crash
This commit is contained in:
@@ -127,11 +127,13 @@ internal sealed partial class DailyNoteViewModel : Abstraction.ViewModel
|
||||
[Command("ConfigDailyNoteWebhookUrlCommand")]
|
||||
private async Task ConfigDailyNoteWebhookUrlAsync()
|
||||
{
|
||||
DailyNoteWebhookDialog dialog = await contentDialogFactory.CreateInstanceAsync<DailyNoteWebhookDialog>().ConfigureAwait(false);
|
||||
DailyNoteWebhookDialog dialog = await contentDialogFactory.CreateInstanceAsync<DailyNoteWebhookDialog>().ConfigureAwait(true);
|
||||
dialog.Text = options.WebhookUrl;
|
||||
(bool isOk, string url) = await dialog.GetInputUrlAsync().ConfigureAwait(false);
|
||||
|
||||
if (isOk)
|
||||
{
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
options.WebhookUrl = url;
|
||||
infoBarService.Information(SH.ViewModelDailyNoteConfigWebhookUrlComplete);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user