Skip to content

Commit

Permalink
Prevent being able to install plugins that are only available via PyP…
Browse files Browse the repository at this point in the history
…I on a bundle installation
  • Loading branch information
dalthviz committed Nov 5, 2024
1 parent dbcd362 commit e7fa812
Showing 1 changed file with 3 additions and 3 deletions.
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 @@ -384,7 +384,7 @@ def setup_ui(self, enabled=True):
if IS_NAPARI_CONDA_INSTALLED and self._versions_conda:
self.source_choice_dropdown.addItem(CONDA)

if self._versions_pypi:
if self._versions_pypi and not ON_BUNDLE:
self.source_choice_dropdown.addItem(PYPI)

source = self.get_installer_source()
Expand Down Expand Up @@ -1190,7 +1190,7 @@ def _setup_ui(self):
self.working_indicator.setMovie(mov)
mov.start()

visibility_direct_entry = not running_as_constructor_app()
visibility_direct_entry = not ON_BUNDLE
self.direct_entry_edit = QLineEdit(self)
self.direct_entry_edit.installEventFilter(self)
self.direct_entry_edit.returnPressed.connect(self._install_packages)
Expand Down Expand Up @@ -1382,7 +1382,7 @@ def _add_items(self):
extra_info['conda_versions'],
)
)
if ON_BUNDLE and not is_available_in_conda:
if ON_BUNDLE and len(extra_info['conda_versions']) == 0:
self.available_list.tag_unavailable(metadata)

if len(self._plugin_queue) == 0:
Expand Down

0 comments on commit e7fa812

Please sign in to comment.