From f2ae12d97604da6136b26c184eb7fe30531b4d5e Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 27 May 2026 14:53:26 -0400 Subject: fix python plugin install api to default to latest version --- python/pluginmanager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/pluginmanager.py b/python/pluginmanager.py index 64d58e69..8ce1ac59 100644 --- a/python/pluginmanager.py +++ b/python/pluginmanager.py @@ -90,8 +90,10 @@ class Extension: return core.BNPluginIsInstalled(self.handle) def install(self, version_id=None) -> bool: - """Attempt to install the given plugin""" + """Attempt to install the given plugin. Defaults to the latest available version.""" self.install_dependencies() + if version_id is None: + version_id = self.current_version.id return core.BNPluginInstall(self.handle, version_id) def uninstall(self) -> bool: @@ -101,8 +103,7 @@ class Extension: @installed.setter def installed(self, state: bool): if state: - self.install_dependencies() - core.BNPluginInstall(self.handle, None) + self.install() else: core.BNPluginUninstall(self.handle) -- cgit v1.3.1