Trigger state change to avoid UI lag

This commit is contained in:
Pat Hartl 2023-03-15 23:17:51 -05:00
parent 449c253db9
commit e893a70fa2

View file

@ -149,6 +149,8 @@
await Editor.SetValue(Script.Contents);
ModalVisible = true;
StateHasChanged();
}
private async void Delete(Script script = null)
@ -172,6 +174,8 @@
ModalVisible = false;
StateHasChanged();
await MessageService.Success("Script saved!");
}