From 452a538111126a146c4df2811e00e41a565e2930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Tue, 15 Oct 2024 20:26:26 -0500 Subject: [PATCH] Searching fixes --- napari_plugin_manager/_tests/test_npe2api.py | 2 +- napari_plugin_manager/qt_plugin_dialog.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/napari_plugin_manager/_tests/test_npe2api.py b/napari_plugin_manager/_tests/test_npe2api.py index 859e255..a981f44 100644 --- a/napari_plugin_manager/_tests/test_npe2api.py +++ b/napari_plugin_manager/_tests/test_npe2api.py @@ -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", diff --git a/napari_plugin_manager/qt_plugin_dialog.py b/napari_plugin_manager/qt_plugin_dialog.py index afbff9c..bf3a2e8 100644 --- a/napari_plugin_manager/qt_plugin_dialog.py +++ b/napari_plugin_manager/qt_plugin_dialog.py @@ -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) @@ -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) @@ -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'] @@ -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,