Clear editor value on adding new script

This commit is contained in:
Pat Hartl 2023-03-15 19:39:48 -05:00
parent 659cfda497
commit 1e7746b041

View file

@ -133,11 +133,14 @@
private async void Edit(Script script = null)
{
if (script == null)
if (script == null) {
Script = new Script()
{
GameId = Game.Id
};
await Editor.SetValue("");
}
else
Script = script;