Gui: support toolbar drag and drop to status bar and menu bar (#13571)
* Gui: support toolbar drag and drop to status bar and menu bar Closes FreeCAD/FreeCAD#12979 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Gui: improve toolbar handling in status and menu bar * Gui: fix workbench tab bar orientation in status or menu bar * Gui: remove workbench toolbar position settings --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -66,7 +66,7 @@ def onRestore(active):
|
||||
|
||||
isConnected(i)
|
||||
|
||||
if i.objectName() and not i.isFloating():
|
||||
if i.objectName() and i.parentWidget() == mw and not i.isFloating():
|
||||
toolbars[i.objectName()] = i
|
||||
else:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user