APEbbers / FreeCAD-Ribbon

A customizable ribbon UI for FreeCAD.
https://github.com/APEbbers/FreeCAD-Ribbon
GNU General Public License v3.0
23 stars 4 forks source link

The "Ribbon design" dialog should list the workbenches in the same order as the workbench toolbar #122

Open raindropsfromsky opened 4 days ago

raindropsfromsky commented 4 days ago

There is a major difference between the two listings. So finding the same workbench in both places is extra effort. image

Desired: Let the "Ribbon design" dialog list the workbenches in the same order as the workbench toolbar

hasecilu commented 3 days ago

In the past I also had that issue but then I reordered some WB, and started to work as expected, not sure the cause of the problem/fix.

APEbbers commented 3 days ago

I haven't found the cause yet. Reordering seems to reset the cache somehow. Also it can help to set the workbench which has problems to autoload on startup.

To solve this issue, I'm going to look in the serialize function of the SearchBar addon. that addon stores the data in a file. That technique can be a solution for this as well for the loading time of the design menu.

raindropsfromsky commented 3 days ago

One possible solution is to sort all WBs alphabetically in the Ribbon WB's dialog. That way, regardless of the order of the WBs in the toolbar, we can easily find any given WB.

Currently, the Ribbon list contains three subsets, each of which is alphabetically sorted!

  1. Assembly-Techdraw
  2. Beltrami-Silk
  3. Curves

(see the screenshot I posted in the first post. This listing is valid for the WBs I have selected.)

So there must be some logic behind this!

hasecilu commented 3 days ago

Did you installed the first bunch of external WB at once and then Curves WB?

APEbbers commented 3 days ago

Hi,

I will order them alphabetically. That should solve this issue.