From 4d415b970f5a501ed6861ecc69c2794960ff0ba2 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Mon, 13 May 2024 10:43:04 +0200 Subject: [PATCH] Review --- addons/io_hubs_addon/preferences.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/addons/io_hubs_addon/preferences.py b/addons/io_hubs_addon/preferences.py index e601f54a..810caeaa 100644 --- a/addons/io_hubs_addon/preferences.py +++ b/addons/io_hubs_addon/preferences.py @@ -1,6 +1,6 @@ import bpy from bpy.types import AddonPreferences, Context -from bpy.props import IntProperty, StringProperty, EnumProperty, BoolProperty, CollectionProperty, PointerProperty +from bpy.props import IntProperty, StringProperty, EnumProperty, BoolProperty, PointerProperty from .utils import get_addon_package, is_module_available, get_browser_profile_directory import platform from os.path import join, dirname, realpath @@ -72,11 +72,9 @@ def execute(self, context): class UninstallDepsOperator(bpy.types.Operator): bl_idname = "pref.hubs_prefs_uninstall_dep" bl_label = "Uninstall a python dependency through pip" - bl_property = "dep_names" bl_options = {'REGISTER', 'UNDO'} dep_config: PointerProperty(type=DepsProperty) - force: BoolProperty(default=False) def execute(self, context): from .utils import get_or_create_deps_path @@ -138,10 +136,6 @@ class HubsPreferences(AddonPreferences): ("Chrome", "Chrome", "Use Chrome as the viewer browser")], default="Firefox") - force_uninstall: BoolProperty( - default=False, name="Force", - description="Force uninstall of the selenium dependencies by deleting the module directory") - override_firefox_path: BoolProperty( name="Override Firefox executable path", description="Override Firefox executable path", default=False) firefox_path: StringProperty( @@ -213,7 +207,6 @@ def draw(self, context): "Selenium module not found. These modules are required to run the viewer") row = modules_box.row() if modules_available: - row.prop(self, "force_uninstall") op = row.operator(UninstallDepsOperator.bl_idname, text="Uninstall dependencies (selenium)") op.dep_config.name = "selenium"