Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2026-04-26 21:45:38 -04:00
parent cd3ef7021d
commit ff764a0b8a
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
3 changed files with 15 additions and 19 deletions

View file

@ -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 =

View file

@ -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

View file

@ -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>