Clear editor value on adding new script
parent
659cfda497
commit
1e7746b041
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue