mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
cleanup
This commit is contained in:
parent
aef28fd3a5
commit
4c64c3c612
@ -41,8 +41,7 @@ void MCModInfoFrame::updateWithMod(Mod &m)
|
||||
setModDescription(tr("No description provided in mcmod.info"));
|
||||
}
|
||||
else
|
||||
{
|
||||
desc = m.description();
|
||||
{
|
||||
setModDescription(m.description());
|
||||
}
|
||||
}
|
||||
@ -92,6 +91,7 @@ void MCModInfoFrame::setModDescription(QString text)
|
||||
{
|
||||
ui->label_ModDescription->setOpenExternalLinks(false);
|
||||
ui->label_ModDescription->setTextFormat(Qt::TextFormat::RichText);
|
||||
desc = text;
|
||||
labeltext.append("<html><body>" + finaltext.left(287) + "<a href=\"#mod_desc\">...</a></body></html>");
|
||||
QObject::connect(ui->label_ModDescription, &QLabel::linkActivated, this, &MCModInfoFrame::modDescEllipsisHandler);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user