Display of empty filenames in ModGui plugins.
This commit is contained in:
@@ -306,7 +306,11 @@ class CustomSelectPathControl implements ModGuiControl {
|
|||||||
this.requestUpdate();
|
this.requestUpdate();
|
||||||
}
|
}
|
||||||
if (this.enumeratedValueElement) {
|
if (this.enumeratedValueElement) {
|
||||||
this.enumeratedValueElement.textContent = pathFileName(this.pathValue);
|
if (this.pathValue === "") {
|
||||||
|
this.enumeratedValueElement.textContent = "<none>";
|
||||||
|
} else {
|
||||||
|
this.enumeratedValueElement.textContent = pathFileName(this.pathValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user