From 36f195d6e74498fe4eae74c23c3053e2b8d378e6 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 20 Nov 2019 14:11:28 +0000 Subject: [PATCH] Fixed legacy plugin state --- openflexure_microscope/plugins/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/plugins/loader.py b/openflexure_microscope/plugins/loader.py index 5e7da427..ad1e4207 100644 --- a/openflexure_microscope/plugins/loader.py +++ b/openflexure_microscope/plugins/loader.py @@ -161,7 +161,7 @@ class PluginLoader(object): logging.warning( "PluginMount.state is deprecated. Use PluginMount.active instead. State will be removed in a future version." ) - return [m["python_name"] for m in self._plugins] + return list(self._legacy_plugins.keys()) @property def active(self):