From 2509def164ee7f4aecbe6a786df57140f19e35f2 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 14 Nov 2020 16:23:56 +0100 Subject: rbutil: Rework player configuration. - Split internal configuration into player specific and common parts. Always require passing the player for player specific data instead of implicitly assuming the currently selected one; only use the currently selected one if the player name is explicitly passed as empty. - Similarly adjust handling of server info data; prepare for splitting into build type specific values so the naming becomes cleaner. Change-Id: I894e694f83bd9fe2d22ad46b3f8f7df3e2c68033 --- rbutil/rbutilqt/gui/manualwidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'rbutil/rbutilqt/gui/manualwidget.cpp') diff --git a/rbutil/rbutilqt/gui/manualwidget.cpp b/rbutil/rbutilqt/gui/manualwidget.cpp index 0ba3012aea..23adc3cf46 100644 --- a/rbutil/rbutilqt/gui/manualwidget.cpp +++ b/rbutil/rbutilqt/gui/manualwidget.cpp @@ -42,9 +42,9 @@ void ManualWidget::updateManual() if(!m_platform.isEmpty()) { ui.labelPdfManual->setText(tr("PDF Manual") - .arg(ServerInfo::platformValue(m_platform, ServerInfo::ManualPdfUrl).toString())); + .arg(ServerInfo::platformValue(ServerInfo::ManualPdfUrl, m_platform).toString())); ui.labelHtmlManual->setText(tr("HTML Manual (opens in browser)") - .arg(ServerInfo::platformValue(m_platform, ServerInfo::ManualHtmlUrl).toString())); + .arg(ServerInfo::platformValue(ServerInfo::ManualHtmlUrl, m_platform).toString())); } else { ui.labelPdfManual->setText(tr("Select a device for a link to the correct manual")); @@ -65,9 +65,9 @@ void ManualWidget::downloadManual(void) QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) { return; } - QString manual = SystemInfo::value(SystemInfo::CurManual).toString(); + QString manual = SystemInfo::platformValue(SystemInfo::CurManual).toString(); if(manual.isEmpty()) { - manual = "rockbox-" + SystemInfo::value(SystemInfo::CurBuildserverModel).toString(); + manual = "rockbox-" + SystemInfo::platformValue(SystemInfo::CurBuildserverModel).toString(); } ProgressLoggerGui* logger = new ProgressLoggerGui(this); @@ -78,14 +78,14 @@ void ManualWidget::downloadManual(void) installer->setCache(true); if(ui.radioPdf->isChecked()) { - installer->setUrl(ServerInfo::platformValue(m_platform, - ServerInfo::ManualPdfUrl).toString()); + installer->setUrl(ServerInfo::platformValue( + ServerInfo::ManualPdfUrl, m_platform).toString()); installer->setLogSection("Manual (PDF)"); installer->setTarget("/" + manual + ".pdf"); } else { - installer->setUrl(ServerInfo::platformValue(m_platform, - ServerInfo::ManualZipUrl).toString()); + installer->setUrl(ServerInfo::platformValue( + ServerInfo::ManualZipUrl, m_platform).toString()); installer->setLogSection("Manual (HTML)"); installer->setTarget("/" + manual + "-" + "-html.zip"); } -- cgit