Commit 9579bfa4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 7d5aac0f
......@@ -2331,7 +2331,8 @@ QString ViewerPrivate::attachmentInjectionHtml()
QString link;
QString textAlign = QStringLiteral("right");
if (headerStylePlugin()->name() == QStringLiteral("fancy")) {
const bool isFancyTheme = (headerStylePlugin()->name() == QStringLiteral("fancy"));
if (isFancyTheme) {
textAlign = QStringLiteral("left");
}
......@@ -2347,7 +2348,7 @@ QString ViewerPrivate::attachmentInjectionHtml()
html.prepend(link);
if (headerStylePlugin()->name() == QStringLiteral("fancy")) {
if (isFancyTheme) {
html.prepend(QStringLiteral("<div style=\"float:left;\">%1&nbsp;</div>").arg(i18n("Attachments:")));
}
return html;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment