Update SettingsWindow.cpp

This commit is contained in:
okrc 2022-11-27 18:29:36 +08:00
parent b126e8c6b1
commit 3c67f63f51
No known key found for this signature in database
GPG Key ID: 7BFFDD3B3BF40F01
1 changed files with 8 additions and 6 deletions

View File

@ -236,6 +236,14 @@ CSettingsWindow::CSettingsWindow(QWidget* parent)
ui.cmbDPI->addItem(tr("Native"), 1);
ui.cmbDPI->addItem(tr("Qt"), 2);
ui.cmbUpdate->addItem(tr("Notify"), "notify");
ui.cmbUpdate->addItem(tr("Download & Notify"), "download");
ui.cmbUpdate->addItem(tr("Download & Install"), "install");
ui.cmbRelease->addItem(tr("Notify"), "notify");
ui.cmbRelease->addItem(tr("Download & Notify"), "download");
ui.cmbRelease->addItem(tr("Download & Install"), "install");
int FontScales[] = { 75,100,125,150,175,200,225,250,275,300,350,400, 0 };
for (int* pFontScales = FontScales; *pFontScales != 0; pFontScales++)
ui.cmbFontScale->addItem(tr("%1").arg(*pFontScales), *pFontScales);
@ -652,14 +660,8 @@ void CSettingsWindow::LoadSettings()
UpdateUpdater();
ui.cmbUpdate->addItem(tr("Notify"), "notify");
ui.cmbUpdate->addItem(tr("Download & Notify"), "download");
ui.cmbUpdate->addItem(tr("Download & Install"), "install");
ui.cmbUpdate->setCurrentIndex(ui.cmbUpdate->findData(theConf->GetString("Options/OnNewUpdate", "install")));
ui.cmbRelease->addItem(tr("Notify"), "notify");
ui.cmbRelease->addItem(tr("Download & Notify"), "download");
ui.cmbRelease->addItem(tr("Download & Install"), "install");
ui.cmbRelease->setCurrentIndex(ui.cmbRelease->findData(theConf->GetString("Options/OnNewRelease", "download")));