Fix a bug where setting an initial image would mess up the width and height field

This commit is contained in:
cmdr2
2023-08-03 15:49:01 +05:30
parent b8328b6071
commit b97c906128
2 changed files with 7 additions and 24 deletions

View File

@ -2162,6 +2162,7 @@ function checkRandomSeed() {
randomSeedField.addEventListener("input", checkRandomSeed)
checkRandomSeed()
// warning: the core plugin `image-editor-improvements.js:172` replaces loadImg2ImgFromFile() with a custom version
function loadImg2ImgFromFile() {
if (initImageSelector.files.length === 0) {
return