@@ -51,17 +51,6 @@ def draw(self, context):
5151 props = tool .Bsdd .get_bsdd_props ()
5252 assert self .layout
5353 layout = self .layout
54- try :
55- if not props .bsdd_baseurl :
56- try :
57- props .bsdd_baseurl = tool .Bsdd .client .baseurl
58- except Exception :
59- props .bsdd_baseurl = bsdd .Client ().baseurl
60- except Exception :
61- pass
62- row = layout .row (align = True )
63- row .prop (props , "bsdd_baseurl" , text = "Other URL" , emboss = True )
64- row .operator ("bim.bsdd_reset_baseurl" , icon = "LOOP_BACK" , text = "" )
6554 if len (props .dictionaries ):
6655 row = self .layout .row ()
6756 row .operator ("bim.load_bsdd_dictionaries" , icon = "FILE_REFRESH" )
@@ -95,24 +84,6 @@ def draw(self, context):
9584 row = self .layout .row ()
9685 row .operator ("bim.load_bsdd_dictionaries" )
9786
98- class BIM_OT_bsdd_reset_baseurl (bpy .types .Operator ):
99- bl_idname = "bim.bsdd_reset_baseurl"
100- bl_label = "Reset bSDD Base URL"
101- bl_description = "Resets the bSDD base URL to the default value"
102-
103- def execute (self , context ):
104- import bsdd
105- props = tool .Bsdd .get_bsdd_props ()
106- props .bsdd_baseurl = ""
107- try :
108- tool .Bsdd .client = bsdd .Client ()
109- if hasattr (tool .Bsdd .client , "baseurl" ):
110- tool .Bsdd .client .baseurl = default_url
111- except Exception :
112- pass
113- self .report ({'INFO' }, "bSDD base URL reset." )
114- return {'FINISHED' }
115-
11687class BIM_UL_bsdd_dictionaries (UIList ):
11788 def draw_item (
11889 self ,
0 commit comments