Fixed message falling behind FreeCAD

This commit is contained in:
Paul Ebbers 2025-02-23 17:10:42 +01:00
parent 349c8c70f5
commit d9b07e6b4c

View File

@ -103,13 +103,12 @@ def refreshToolsAction():
from PySide.QtCore import Qt from PySide.QtCore import Qt
print("Refresh cached results") print("Refresh cached results")
# fw = QApplication.focusWidget()
# if fw is not None:
# fw.clearFocus()
msgBox = QMessageBox() msgBox = QMessageBox()
msgBox.setWindowFlags(Qt.WindowType.WindowStaysOnTopHint) msgBox.setWindowFlags(Qt.WindowType.WindowStaysOnTopHint)
# Get the main window from FreeCAD
mw = Gui.getMainWindow()
reply = msgBox.question( reply = msgBox.question(
None, mw,
translate("SearchBar", "Load all workbenches?"), translate("SearchBar", "Load all workbenches?"),
translate( translate(
"SearchBar", "SearchBar",