summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/serverinfo.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 11:19:41 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 14:43:01 +0100
commitba2bbd60bd3d8a9fa204b17686c33dfb0337b07c (patch)
tree1c2865adab8e956fe65180e56d87f8380754ba7a /rbutil/rbutilqt/base/serverinfo.cpp
parent5f36aed4bfd5e78a9edc322b8dae2c1e10ff733d (diff)
downloadrockbox-ba2bbd60bd3d8a9fa204b17686c33dfb0337b07c.tar.gz
rockbox-ba2bbd60bd3d8a9fa204b17686c33dfb0337b07c.zip
rbutil: Move Manual installation to main tab.
The manual tab didn't show the manual, so it's clearer to have that as part of the main tab. Also fixes the wrong manual getting downloaded for releases. Change-Id: I5d4a287102af037f94f0de8464e025d9ff5f76ed
Diffstat (limited to 'rbutil/rbutilqt/base/serverinfo.cpp')
-rw-r--r--rbutil/rbutilqt/base/serverinfo.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp
index 2f73d96beb..8b6707540e 100644
--- a/rbutil/rbutilqt/base/serverinfo.cpp
+++ b/rbutil/rbutilqt/base/serverinfo.cpp
@@ -42,9 +42,6 @@ const static struct {
42 { ServerInfo::RelCandidateVersion, "release-candidate/:platform:", "" }, 42 { ServerInfo::RelCandidateVersion, "release-candidate/:platform:", "" },
43 { ServerInfo::RelCandidateUrl, "release-candidate/:platform:", "" }, 43 { ServerInfo::RelCandidateUrl, "release-candidate/:platform:", "" },
44 { ServerInfo::CurStatus, "status/:platform:", "-1" }, 44 { ServerInfo::CurStatus, "status/:platform:", "-1" },
45 { ServerInfo::ManualPdfUrl, "", "" },
46 { ServerInfo::ManualHtmlUrl, "", "" },
47 { ServerInfo::ManualZipUrl, "", "" },
48 { ServerInfo::BleedingRevision, "bleeding/rev", "" }, 45 { ServerInfo::BleedingRevision, "bleeding/rev", "" },
49 { ServerInfo::BleedingDate, "bleeding/timestamp", "" }, 46 { ServerInfo::BleedingDate, "bleeding/timestamp", "" },
50 { ServerInfo::CurDevelUrl, "", "" }, 47 { ServerInfo::CurDevelUrl, "", "" },
@@ -111,23 +108,6 @@ QVariant ServerInfo::platformValue(enum ServerInfos info, QString platform)
111 SystemInfo::BuildCurrent).toString() 108 SystemInfo::BuildCurrent).toString()
112 .replace("%MODEL%", platform); 109 .replace("%MODEL%", platform);
113 break; 110 break;
114 case ManualPdfUrl:
115 case ManualZipUrl:
116 case ManualHtmlUrl:
117 {
118 QString url = SystemInfo::value(SystemInfo::ManualUrl).toString();
119 QString modelman = SystemInfo::platformValue(
120 SystemInfo::Manual, platform).toString();
121 url.replace("%MODEL%", modelman.isEmpty() ? platform : modelman);
122 if(info == ManualPdfUrl)
123 url.replace("%FORMAT%", ".pdf");
124 else if(info == ManualZipUrl)
125 url.replace("%FORMAT%", "-html.zip");
126 else if(info == ManualHtmlUrl)
127 url.replace("%FORMAT%", "/rockbox-build.html");
128 value = url;
129 }
130 break;
131 case BleedingDate: 111 case BleedingDate:
132 // TODO: get rid of this, it's location specific. 112 // TODO: get rid of this, it's location specific.
133 value = QDateTime::fromString(value.toString(), 113 value = QDateTime::fromString(value.toString(),