Skip to content

Commit

Permalink
Pref > Library: fix reset/default search debounce timeout + update
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Nov 6, 2021
1 parent 50615a4 commit 86925d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/preferences/dialog/dlgpreflibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ void DlgPrefLibrary::slotResetToDefaults() {
radioButton_dbclick_deck->setChecked(true);
spinBoxRowHeight->setValue(Library::kDefaultRowHeightPx);
setLibraryFont(QApplication::font());
searchDebouncingTimeoutSpinBox->setValue(
WSearchLineEdit::kDefaultDebouncingTimeoutMillis);
}

void DlgPrefLibrary::slotUpdate() {
Expand Down Expand Up @@ -257,6 +259,11 @@ void DlgPrefLibrary::slotUpdate() {
m_iOriginalTrackTableRowHeight = m_pLibrary->getTrackTableRowHeight();
spinBoxRowHeight->setValue(m_iOriginalTrackTableRowHeight);
setLibraryFont(m_originalTrackTableFont);
const auto searchDebouncingTimeoutMillis =
m_pConfig->getValue(
kSearchDebouncingTimeoutMillisConfigKey,
WSearchLineEdit::kDefaultDebouncingTimeoutMillis);
searchDebouncingTimeoutSpinBox->setValue(searchDebouncingTimeoutMillis);
}

void DlgPrefLibrary::slotCancel() {
Expand Down

0 comments on commit 86925d3

Please sign in to comment.