Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed May 13, 2024
1 parent 309bced commit 4d415b9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions addons/io_hubs_addon/preferences.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4d415b9

Please sign in to comment.