Clear editor value on adding new script

pull/19/head
Pat Hartl 2023-03-15 19:39:48 -05:00
parent 659cfda497
commit 1e7746b041
1 changed files with 4 additions and 1 deletions

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;