Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2810 from pypeclub/bugfix/search_case_sensitivity
Browse files Browse the repository at this point in the history
Settings UI: Search case sensitivity
  • Loading branch information
iLLiCiTiT authored Feb 25, 2022
2 parents 5a4cd11 + 1574a24 commit df59a39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion openpype/tools/settings/settings/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,12 @@ def _update_labels_visibility(self):
self._outdated_version_label,
self._require_restart_label,
}
if self.entity.require_restart:
if self.is_modifying_defaults or self.entity is None:
require_restart = False
else:
require_restart = self.entity.require_restart

if require_restart:
visible_label = self._require_restart_label
elif self._is_loaded_version_outdated:
visible_label = self._outdated_version_label
Expand Down
3 changes: 2 additions & 1 deletion openpype/tools/settings/settings/search_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def filterAcceptsRow(self, row, parent):
regex = self.filterRegExp()
if not regex.isEmpty() and regex.isValid():
pattern = regex.pattern()
compiled_regex = re.compile(pattern)
compiled_regex = re.compile(pattern, re.IGNORECASE)
source_model = self.sourceModel()

# Check current index itself in all columns
Expand Down Expand Up @@ -75,6 +75,7 @@ def __init__(self, parent):

filter_changed_timer = QtCore.QTimer()
filter_changed_timer.setInterval(200)
filter_changed_timer.setSingleShot(True)

view.selectionModel().selectionChanged.connect(
self._on_selection_change
Expand Down

0 comments on commit df59a39

Please sign in to comment.