Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings registering sverchok menus after reenabling addon #5170

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

Andrej730
Copy link
Contributor

@zeffii @portnov

E.g. if you disable and enable addon it would give the warnings below since menu classes were not unregistered.

Example warnings:

register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Advanced', bl_idname 'SV_MT_PyMenu_Advanced' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Architecture', bl_idname 'SV_MT_PyMenu_Architecture' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_CNC', bl_idname 'SV_MT_PyMenu_CNC' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Design', bl_idname 'SV_MT_PyMenu_Design' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Fields', bl_idname 'SV_MT_PyMenu_Fields' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Introduction', bl_idname 'SV_MT_PyMenu_Introduction' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Shapes', bl_idname 'SV_MT_PyMenu_Shapes' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Surfaces', bl_idname 'SV_MT_PyMenu_Surfaces' has been registered before, unregistering previous

E.g. if you disable and enable addon it would give the warnings below since menu classes were not unregistered.

Example warnings:
```
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Advanced', bl_idname 'SV_MT_PyMenu_Advanced' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Architecture', bl_idname 'SV_MT_PyMenu_Architecture' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_CNC', bl_idname 'SV_MT_PyMenu_CNC' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Design', bl_idname 'SV_MT_PyMenu_Design' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Fields', bl_idname 'SV_MT_PyMenu_Fields' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Introduction', bl_idname 'SV_MT_PyMenu_Introduction' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Shapes', bl_idname 'SV_MT_PyMenu_Shapes' has been registered before, unregistering previous
register_class(...):
Info: Registering menu class: 'SV_MT_PyMenu_Surfaces', bl_idname 'SV_MT_PyMenu_Surfaces' has been registered before, unregistering previous
```
@portnov portnov merged commit 8ad69dc into nortikin:master Dec 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants