Fixed #4620
This commit is contained in:
@@ -77,7 +77,6 @@ public class ModsDialog extends BaseDialog{
|
|||||||
browser.cont.pane(tablebrow -> {
|
browser.cont.pane(tablebrow -> {
|
||||||
tablebrow.margin(10f).top();
|
tablebrow.margin(10f).top();
|
||||||
browserTable = tablebrow;
|
browserTable = tablebrow;
|
||||||
rebuildBrowser();
|
|
||||||
}).get().setScrollingDisabled(true, false);
|
}).get().setScrollingDisabled(true, false);
|
||||||
browser.addCloseButton();
|
browser.addCloseButton();
|
||||||
|
|
||||||
@@ -508,6 +507,7 @@ public class ModsDialog extends BaseDialog{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String trimText(String text){
|
private String trimText(String text){
|
||||||
|
if(text == null) return "";
|
||||||
if(text.contains("\n")){
|
if(text.contains("\n")){
|
||||||
return text.substring(0, text.indexOf("\n"));
|
return text.substring(0, text.indexOf("\n"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user