Revert "fix: remove updater if it is not used"
This reverts commit 2ff0aa09e3
.
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
f1902a4471
commit
e210a4b244
17 changed files with 19 additions and 65 deletions
|
@ -78,7 +78,6 @@ LauncherPage::LauncherPage(QWidget *parent) : QWidget(parent), ui(new Ui::Launch
|
|||
m_languageModel = APPLICATION->translations();
|
||||
loadSettings();
|
||||
|
||||
#ifdef LAUNCHER_WITH_UPDATER
|
||||
if(BuildConfig.UPDATER_ENABLED)
|
||||
{
|
||||
QObject::connect(APPLICATION->updateChecker().get(), &UpdateChecker::channelListLoaded, this, &LauncherPage::refreshUpdateChannelList);
|
||||
|
@ -91,9 +90,11 @@ LauncherPage::LauncherPage(QWidget *parent) : QWidget(parent), ui(new Ui::Launch
|
|||
{
|
||||
APPLICATION->updateChecker()->updateChanList(false);
|
||||
}
|
||||
ui->updateSettingsBox->setHidden(false);
|
||||
}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
ui->updateSettingsBox->setHidden(true);
|
||||
}
|
||||
connect(ui->fontSizeBox, SIGNAL(valueChanged(int)), SLOT(refreshFontPreview()));
|
||||
connect(ui->consoleFont, SIGNAL(currentFontChanged(QFont)), SLOT(refreshFontPreview()));
|
||||
}
|
||||
|
@ -188,7 +189,6 @@ void LauncherPage::on_metadataDisableBtn_clicked()
|
|||
ui->metadataWarningLabel->setHidden(!ui->metadataDisableBtn->isChecked());
|
||||
}
|
||||
|
||||
#ifdef LAUNCHER_WITH_UPDATER
|
||||
void LauncherPage::refreshUpdateChannelList()
|
||||
{
|
||||
// Stop listening for selection changes. It's going to change a lot while we update it and
|
||||
|
@ -260,7 +260,6 @@ void LauncherPage::refreshUpdateChannelDesc()
|
|||
m_currentUpdateChannel = selected.id;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void LauncherPage::applySettings()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue