Skip to content

Commit

Permalink
Reduce delay when searching entries in Auto-Type select dialog
Browse files Browse the repository at this point in the history
* Fix #7596
  • Loading branch information
droidmonkey committed Mar 22, 2022
1 parent eac60b3 commit 4fda468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autotype/AutoTypeSelectDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ AutoTypeSelectDialog::AutoTypeSelectDialog(QWidget* parent)

m_ui->search->installEventFilter(this);

m_searchTimer.setInterval(300);
m_searchTimer.setInterval(0);
m_searchTimer.setSingleShot(true);

connect(m_ui->search, SIGNAL(textChanged(QString)), &m_searchTimer, SLOT(start()));
Expand All @@ -71,7 +71,7 @@ AutoTypeSelectDialog::AutoTypeSelectDialog(QWidget* parent)

m_ui->searchCheckBox->setShortcut(Qt::CTRL + Qt::Key_F);
connect(m_ui->searchCheckBox, &QCheckBox::toggled, this, [this](bool checked) {
Q_UNUSED(checked);
m_searchTimer.setInterval(checked ? 150 : 0);
performSearch();
});

Expand Down

0 comments on commit 4fda468

Please sign in to comment.