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
+4
View File
@@ -306,9 +306,13 @@ class CustomSelectPathControl implements ModGuiControl {
this.requestUpdate(); this.requestUpdate();
} }
if (this.enumeratedValueElement) { if (this.enumeratedValueElement) {
if (this.pathValue === "") {
this.enumeratedValueElement.textContent = "<none>";
} else {
this.enumeratedValueElement.textContent = pathFileName(this.pathValue); this.enumeratedValueElement.textContent = pathFileName(this.pathValue);
} }
} }
}
private updateImage() { private updateImage() {
if (!this.frameElement || !this.mounted) { if (!this.frameElement || !this.mounted) {