Skip to content

Commit

Permalink
Searching fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Oct 16, 2024
1 parent 5936619 commit 452a538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion napari_plugin_manager/_tests/test_npe2api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_user_agent():
assert _user_agent()


@flaky(max_runs=3, min_passes=2)
@flaky(max_runs=4, min_passes=2)
def test_plugin_summaries():
keys = [
"name",
Expand Down
6 changes: 3 additions & 3 deletions napari_plugin_manager/qt_plugin_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,6 @@ def filter(self, text: str, starts_with_chars: int = 1):
id(item) not in shown and not item.widget.is_busy()
)
else:
print(self.count_visible(), self.count())
for i in range(self.count()):
item = self.item(i)
item.setHidden(False)
Expand Down Expand Up @@ -950,7 +949,7 @@ def _setup_shortcuts(self):
self.addAction(self._quit_action)

self._close_shortcut = QShortcut(
QKeySequence(Qt.CTRL | Qt.Key_W), self
QKeySequence('Ctrl+W'), self
)
self._close_shortcut.activated.connect(self.close)
get_settings().appearance.events.theme.connect(self._update_theme)
Expand Down Expand Up @@ -997,6 +996,7 @@ def _on_process_finished(self, process_finished_data: ProcessFinishedData):
for pkg_name in pkg_names:
self.installed_list.refreshItem(pkg_name)
elif action == InstallerActions.UPGRADE:
print('process_finished_data', process_finished_data)
pkg_info = [
(pkg.split('==')[0], pkg.split('==')[1])
for pkg in process_finished_data['pkgs']
Expand Down Expand Up @@ -1331,7 +1331,7 @@ def _update_plugin_count(self):
elif self._plugins_found > self.MAX_PLUGIN_SEARCH_ITEMS:
self.avail_label.setText(
trans._(
"Found ({found}) out of {amount} in the napari Hub. Displaying the first {max_count} plugins.",
"Found ({found}) out of {amount} in the napari Hub. Displaying the first {max_count} plugins...",
found=self._plugins_found,
amount=available_count,
max_count=self.MAX_PLUGIN_SEARCH_ITEMS,
Expand Down

0 comments on commit 452a538

Please sign in to comment.