Add floating toolbar visibility state to the extension approval requirements

There are still many extensions that do not seem to have working code for recording their own toolbar visibility state on startup of SketchUp. One closes the toolbar for a given enabled extension, only to have it reappear at every start up. Some extensions record their state persistently and behave properly, some do not. Can we add checking this as an approval condition? It would go a long way toward cleaning up and unifying the UI experience. Thanks.

Riley, the Extension Warehouse runs all extension Ruby code through rubcop-sketchup gem.

A “cop” rule would need to be added to the configuration YAML file.

In fact, the project already has an Issue logged for this problem (for 8 YEARS):

… The rule just has not yet been added.


What I use is the following statement:

# Where "toolbar" is an extension's UI::Toolbar instance reference ...
toolbar.get_last_state == TB_NEVER_SHOWN ? toolbar.show : toolbar.restore