BIM: remove LibraryWebSearch option from BIM_Library as it required the Web WB (#27048)

* BIM: remove LibraryWebSearch option from BIM_Library as it required the Web WB

Removed the 'checkWebSearch' checkbox and updated tooltip text formatting.

* BIM: remove LibraryWebSearch option from BIM_Library as it required the Web WB

* Restore tooltip
This commit is contained in:
Roy-043
2026-02-02 17:59:40 +01:00
committed by GitHub
parent a3486b4dd2
commit ed104dd2c1
2 changed files with 1 additions and 25 deletions

View File

@@ -200,16 +200,6 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkWebSearch">
<property name="toolTip">
<string>Open the search results inside FreeCAD's web browser instead of the system browser</string>
</property>
<property name="text">
<string>Search using FreeCAD's web view</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="check3DPreview">
<property name="toolTip">

View File

@@ -178,8 +178,6 @@ class BIM_Library_TaskPanel:
self.form.checkOnline.setChecked(PARAMS.GetBool("LibraryOnline", not offlinemode))
self.form.checkFCStdOnly.toggled.connect(self.onCheckFCStdOnly)
self.form.checkFCStdOnly.setChecked(PARAMS.GetBool("LibraryFCStdOnly", False))
self.form.checkWebSearch.toggled.connect(self.onCheckWebSearch)
self.form.checkWebSearch.setChecked(PARAMS.GetBool("LibraryWebSearch", False))
self.form.check3DPreview.toggled.connect(self.onCheck3DPreview)
self.form.check3DPreview.setChecked(PARAMS.GetBool("3DPreview", False))
@@ -529,13 +527,7 @@ class BIM_Library_TaskPanel:
from PySide import QtGui
s = PARAMS.GetBool("LibraryWebSearch", False)
if s:
import WebGui
WebGui.openBrowser(url)
else:
QtGui.QDesktopServices.openUrl(url)
QtGui.QDesktopServices.openUrl(url)
def needsFullSpace(self):
@@ -889,12 +881,6 @@ class BIM_Library_TaskPanel:
self.dirmodel.setNameFilters(self.getFilters())
self.onCheckOnline(self.form.checkOnline.isChecked())
def onCheckWebSearch(self, state):
"""if the web search checkbox is clicked"""
# save state
PARAMS.SetBool("LibraryWebSearch", state)
def onCheck3DPreview(self, state):
"""if the 3D preview checkbox is clicked"""