Store search history

PR #22208.
This commit is contained in:
Vladimir Golovnev
2025-01-30 08:59:10 +03:00
committed by GitHub
parent f8536162f2
commit b76054beba
6 changed files with 246 additions and 7 deletions

View File

@@ -1281,9 +1281,11 @@ void OptionsDialog::loadSearchTabOptions()
m_ui->groupStoreOpenedTabs->setChecked(pref->storeOpenedSearchTabs());
m_ui->checkStoreTabsSearchResults->setChecked(pref->storeOpenedSearchTabResults());
m_ui->searchHistoryLengthSpinBox->setValue(pref->searchHistoryLength());
connect(m_ui->groupStoreOpenedTabs, &QGroupBox::toggled, this, &OptionsDialog::enableApplyButton);
connect(m_ui->checkStoreTabsSearchResults, &QCheckBox::toggled, this, &OptionsDialog::enableApplyButton);
connect(m_ui->searchHistoryLengthSpinBox, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton);
}
void OptionsDialog::saveSearchTabOptions() const
@@ -1292,6 +1294,7 @@ void OptionsDialog::saveSearchTabOptions() const
pref->setStoreOpenedSearchTabs(m_ui->groupStoreOpenedTabs->isChecked());
pref->setStoreOpenedSearchTabResults(m_ui->checkStoreTabsSearchResults->isChecked());
pref->setSearchHistoryLength(m_ui->searchHistoryLengthSpinBox->value());
}
#ifndef DISABLE_WEBUI