I noticed one thing. Workspace specific custom toolbars positions gets lost after restarting FreeCAD.
For example:
-Sketcher toolbar in Sketcher workbench
-Solids, Part tools and Booleans toolbars in Part workbench
-Drawing toolbar in Drawing workbench
-Draft creation tools and Draft modifications tools toolbars in Draft workbench
Could this be fixed in a way that custom positioning of toolbar would persist across restarts of FreeCAD?
Workbench specific toolbars custom positioning persistence
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Workbench specific toolbars custom positioning persistence
Usually this works pretty well. However, there might be some cases where it doesn't work but in 99% it works OK.Could this be fixed in a way that custom positioning of toolbar would persist across restarts of FreeCAD?
Here some insights how it works:
Qt's QMainWindow class offers the method saveState() ans restoreState() which saves/loads the layout of the tool bars and dock windows in a byte array. This information then gets stored to the registry on Windows and a text file on Linux. We intentionally do not store this in our user.cfg file because this information is not platform-independent, mainly because of possibly different resolutions of the monitor.
Re: Workbench specific toolbars custom positioning persistence
Where would i find text file on Linux (Ubuntu). Location of text file.This information then gets stored to the registry on Windows and a text file on Linux.
Re: Workbench specific toolbars custom positioning persistence
It stores the stuff in $HOME/.config/FreeCAD/FreeCAD.conf. For more information checkout Qt's QSettings class and its on-line help. Especially have a look to the chapter "Locations Where Application Settings Are Stored"
Re: Workbench specific toolbars custom positioning persistence
Thanks i found it! I did some additional tests and here is the update. I assume the problem is with loading data from this file while switching workbenches or possibly data stored for workbench specific toolbar position does not exist because it exist only for default workbench. Workbench set in Preferences ... and loaded on FreeCAD start up. This workbench toolbar position always persist but all other are lost!wmayer wrote:It stores the stuff in $HOME/.config/FreeCAD/FreeCAD.conf. For more information checkout Qt's QSettings class and its on-line help. Especially have a look to the chapter "Locations Where Application Settings Are Stored"