diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-09-27 00:23:30 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-09-27 00:23:30 +0200 |
commit | e6936212d63f5285ec0ccc6588b92934092c0201 (patch) | |
tree | ad145abba9755c24bc82a3214b3df5020c74bd09 /application | |
parent | 1210d3abf1347ceec34210a1b8670787c2e31258 (diff) | |
download | MultiMC-e6936212d63f5285ec0ccc6588b92934092c0201.tar MultiMC-e6936212d63f5285ec0ccc6588b92934092c0201.tar.gz MultiMC-e6936212d63f5285ec0ccc6588b92934092c0201.tar.lz MultiMC-e6936212d63f5285ec0ccc6588b92934092c0201.tar.xz MultiMC-e6936212d63f5285ec0ccc6588b92934092c0201.zip |
NOISSUE remove some ugly html strings to make translating slightly nicer
Diffstat (limited to 'application')
-rw-r--r-- | application/dialogs/AboutDialog.ui | 14 | ||||
-rw-r--r-- | application/dialogs/UpdateDialog.cpp | 1 | ||||
-rw-r--r-- | application/dialogs/UpdateDialog.ui | 7 |
3 files changed, 1 insertions, 21 deletions
diff --git a/application/dialogs/AboutDialog.ui b/application/dialogs/AboutDialog.ui index a312aa0c..47ec0293 100644 --- a/application/dialogs/AboutDialog.ui +++ b/application/dialogs/AboutDialog.ui @@ -212,13 +212,6 @@ <property name="readOnly"> <bool>true</bool> </property> - <property name="html"> - <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Noto Sans'; font-size:12pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html></string> - </property> <property name="textInteractionFlags"> <set>Qt::TextBrowserInteraction</set> </property> @@ -257,13 +250,6 @@ p, li { white-space: pre-wrap; } <property name="readOnly"> <bool>true</bool> </property> - <property name="html"> - <string notr="true"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'DejaVu Sans Mono'; font-size:12pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string> - </property> <property name="textInteractionFlags"> <set>Qt::TextBrowserInteraction</set> </property> diff --git a/application/dialogs/UpdateDialog.cpp b/application/dialogs/UpdateDialog.cpp index 242a5b70..2baaf5e9 100644 --- a/application/dialogs/UpdateDialog.cpp +++ b/application/dialogs/UpdateDialog.cpp @@ -22,6 +22,7 @@ UpdateDialog::UpdateDialog(bool hasUpdate, QWidget *parent) : QDialog(parent), u ui->btnUpdateNow->setHidden(true); ui->btnUpdateLater->setText(tr("Close")); } + ui->changelogBrowser->setHtml(tr("<center><h1>Loading changelog...</h1></center>")); loadChangelog(); restoreGeometry(QByteArray::fromBase64(MMC->settings()->get("UpdateDialogGeometry").toByteArray())); } diff --git a/application/dialogs/UpdateDialog.ui b/application/dialogs/UpdateDialog.ui index 8e34a521..b0b3dd83 100644 --- a/application/dialogs/UpdateDialog.ui +++ b/application/dialogs/UpdateDialog.ui @@ -42,13 +42,6 @@ </item> <item> <widget class="QTextBrowser" name="changelogBrowser"> - <property name="html"> - <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Noto Sans'; font-size:12pt; font-weight:400; font-style:normal;"> -<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Bitstream Vera Sans'; font-size:22pt;">Loading changelog...</span></p></body></html></string> - </property> <property name="openExternalLinks"> <bool>true</bool> </property> |