rbutil: Fix installing fonts / manual for development builds.

For development builds we provide a download URL, but use the daily
build files. Those require the version of the daily build to be set when
expanding the URL string.

Change-Id: Ie6dcf38f7e86527217edc01ee11a20758a178622
This commit is contained in:
Dominik Riebeling 2022-03-12 22:44:37 +01:00
parent ce70e34476
commit 403cb96f3a
3 changed files with 48 additions and 19 deletions

View file

@ -97,6 +97,12 @@ void SelectiveInstallWidget::selectedVersionChanged(int index)
ui.voiceCombobox->setEnabled(voice);
ui.voiceLabel->setEnabled(voice);
ui.voiceCheckbox->setToolTip(voice ? "" : tr("Not available for the selected version"));
QString fontsurl = PlayerBuildInfo::instance()->value(
PlayerBuildInfo::BuildFontUrl, m_buildtype).toString();
ui.fontsCheckbox->setEnabled(!fontsurl.isEmpty());
QString manualurl = PlayerBuildInfo::instance()->value(
PlayerBuildInfo::BuildManualUrl, m_buildtype).toString();
ui.manualCheckbox->setEnabled(!manualurl.isEmpty());
updateVoiceLangs();
}