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

Applications: Disable applications addon if does not have settings available #360

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

Disable applications addon if does not have available settings (addon is disabled on server).

Additional info

The client addon would crash if server would be disabled.

@ynbot ynbot added size/XS type: bug Something isn't working labels Apr 3, 2024
@@ -11,6 +11,10 @@
class ApplicationsAddon(AYONAddon, IPluginPaths):
name = "applications"

def initialize(self, settings):
# TODO remove when addon is removed from ayon-core
self.enabled = self.name in settings
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come this is needed? Is it because addons present in ayon core are currently always loaded no matter what?

Copy link
Member Author

@iLLiCiTiT iLLiCiTiT Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

EDITED:
They are skipped if already have different source.

@iLLiCiTiT iLLiCiTiT merged commit 28b1b8a into develop Apr 3, 2024
11 of 12 checks passed
@iLLiCiTiT iLLiCiTiT deleted the bugfix/applications-enabled-state branch April 3, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants