From ed104dd2c109093bd728dc3bf1f744087c8db81a Mon Sep 17 00:00:00 2001
From: Roy-043 <70520633+Roy-043@users.noreply.github.com>
Date: Mon, 2 Feb 2026 17:59:40 +0100
Subject: [PATCH] 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
---
src/Mod/BIM/Resources/ui/dialogLibrary.ui | 10 ----------
src/Mod/BIM/bimcommands/BimLibrary.py | 16 +---------------
2 files changed, 1 insertion(+), 25 deletions(-)
diff --git a/src/Mod/BIM/Resources/ui/dialogLibrary.ui b/src/Mod/BIM/Resources/ui/dialogLibrary.ui
index 0a1ccadf7c..f186057845 100644
--- a/src/Mod/BIM/Resources/ui/dialogLibrary.ui
+++ b/src/Mod/BIM/Resources/ui/dialogLibrary.ui
@@ -200,16 +200,6 @@
- -
-
-
- Open the search results inside FreeCAD's web browser instead of the system browser
-
-
- Search using FreeCAD's web view
-
-
-
-
diff --git a/src/Mod/BIM/bimcommands/BimLibrary.py b/src/Mod/BIM/bimcommands/BimLibrary.py
index 4df89219af..5d73982177 100644
--- a/src/Mod/BIM/bimcommands/BimLibrary.py
+++ b/src/Mod/BIM/bimcommands/BimLibrary.py
@@ -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"""