mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-28 11:18:57 +02:00
fix \r
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
cd3ef7021d
commit
ff764a0b8a
3 changed files with 15 additions and 19 deletions
|
|
@ -125,7 +125,11 @@ std::optional<Release> Release::FromJson(const nlohmann::json& json, const std::
|
|||
rel.published = ParseIsoTimestamp(json.value("published_at", std::string{}));
|
||||
rel.prerelease = json.value("prerelease", false);
|
||||
|
||||
rel.body = json.value("body", rel.title);
|
||||
auto body = json.value("body", rel.title);
|
||||
boost::replace_all(body, "\\r", "");
|
||||
boost::replace_all(body, "\\n", "\n");
|
||||
rel.body = body;
|
||||
|
||||
rel.host = host;
|
||||
|
||||
const auto release_base =
|
||||
|
|
|
|||
|
|
@ -4225,17 +4225,6 @@ void MainWindow::OnEmulatorUpdateAvailable() {
|
|||
|
||||
UpdateDialog dialog(version.value(), this);
|
||||
dialog.exec();
|
||||
|
||||
// QMessageBox update_prompt(this);
|
||||
// update_prompt.setWindowTitle(tr("Update Available"));
|
||||
// update_prompt.setIcon(QMessageBox::Information);
|
||||
// update_prompt.addButton(QMessageBox::Yes);
|
||||
// update_prompt.addButton(QMessageBox::Ignore);
|
||||
// update_prompt.setText(tr("Download %1?").arg(QString::fromStdString(version->title)));
|
||||
// update_prompt.exec();
|
||||
// if (update_prompt.button(QMessageBox::Yes) == update_prompt.clickedButton()) {
|
||||
// QDesktopServices::openUrl(QUrl(QString::fromStdString(version->html_url)));
|
||||
// }
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -52,20 +52,23 @@
|
|||
<layout class="QVBoxLayout" name="radioButtons"/>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="version">
|
||||
<property name="text">
|
||||
<string>%1 is available for download.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QTextEdit" name="body">
|
||||
<widget class="QTextBrowser" name="body">
|
||||
<property name="horizontalScrollBarPolicy">
|
||||
<enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="version">
|
||||
<property name="text">
|
||||
<string>%1 is available for download.</string>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue