Display of empty filenames in ModGui plugins.

This commit is contained in:
Robin E. R. Davies
2025-08-06 17:34:17 -04:00
parent 75962c96d6
commit 92f5187d86
+5 -1
View File
@@ -306,7 +306,11 @@ class CustomSelectPathControl implements ModGuiControl {
this.requestUpdate();
}
if (this.enumeratedValueElement) {
this.enumeratedValueElement.textContent = pathFileName(this.pathValue);
if (this.pathValue === "") {
this.enumeratedValueElement.textContent = "<none>";
} else {
this.enumeratedValueElement.textContent = pathFileName(this.pathValue);
}
}
}