✈ Pre-Flight checks
🐞 Describe the bug
see title - this makes testing the command script.toggle_icon() impossible as it ignores native tabs
⌨ Error/Debug Message
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Create
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Add-Ins
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevit
DEBUG [pyrevit.coreutils.ribbon] Native tab added to the list of tabs: pyRevitDev
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevitPlus
♻️ To Reproduce
This small sample script can show the error:
try:
script.get_logger().set_debug_mode()
state = config.get_option("state", True)
print("Current state: ", state)
script.toggle_icon(not state)
config.set_option("state", not state)
script.save_config()
print("Works... Saving: ", not state)
except Exception as e:
print(e)
finally:
script.get_logger().reset_level()
⏲️ Expected behavior
looking at the printout, i would expect the behaviour to list all tabs but the pyrevit ones as native. Is this not the intention of that? Currently all of them are not native:
EBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Architecture
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Structure
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Steel
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Precast
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Systems
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Analyze
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Massing & Site
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Collaborate
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Create
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Add-Ins
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevitPlus
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: develop
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevit
DEBUG [pyrevit.coreutils.ribbon] Native tab added to the list of tabs: pyRevitDev
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
✈ Pre-Flight checks
🐞 Describe the bug
see title - this makes testing the command
script.toggle_icon()impossible as it ignores native tabs⌨ Error/Debug Message
♻️ To Reproduce
This small sample script can show the error:
⏲️ Expected behavior
looking at the printout, i would expect the behaviour to list all tabs but the pyrevit ones as native. Is this not the intention of that? Currently all of them are not native:
EBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Architecture
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Structure
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Steel
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Precast
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Systems
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Analyze
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Massing & Site
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Collaborate
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Create
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Add-Ins
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevitPlus
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: develop
DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevit
DEBUG [pyrevit.coreutils.ribbon] Native tab added to the list of tabs: pyRevitDev
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response