Clear editor value on adding new script
This commit is contained in:
parent
659cfda497
commit
1e7746b041
1 changed files with 4 additions and 1 deletions
|
@ -133,11 +133,14 @@
|
||||||
|
|
||||||
private async void Edit(Script script = null)
|
private async void Edit(Script script = null)
|
||||||
{
|
{
|
||||||
if (script == null)
|
if (script == null) {
|
||||||
Script = new Script()
|
Script = new Script()
|
||||||
{
|
{
|
||||||
GameId = Game.Id
|
GameId = Game.Id
|
||||||
};
|
};
|
||||||
|
|
||||||
|
await Editor.SetValue("");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
Script = script;
|
Script = script;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue