fix: null setting when cancelling prompt

This commit is contained in:
quenousimporte 2023-09-27 09:09:16 +02:00
parent 1ce493fe58
commit 7fd3e70099
1 changed files with 12 additions and 9 deletions

View File

@ -947,6 +947,8 @@ function editsetting(name)
if (type != "undefined") if (type != "undefined")
{ {
value = prompt(name, value); value = prompt(name, value);
if (value !== null)
{
if (type == "number") if (type == "number")
{ {
value = parseInt(value); value = parseInt(value);
@ -960,6 +962,7 @@ function editsetting(name)
loadsettings(); loadsettings();
} }
} }
}
} }
function changesetting() function changesetting()