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

Can't set Wormholy.setEnabled(_:) before initialization #148

Open
akovalov opened this issue Feb 20, 2025 · 0 comments · May be fixed by #150
Open

Can't set Wormholy.setEnabled(_:) before initialization #148

akovalov opened this issue Feb 20, 2025 · 0 comments · May be fixed by #150

Comments

@akovalov
Copy link

Wormholy calls swiftyInitialize() on applicationDidFinishLaunching event force enabling logging Wormholy.setEnabled(true).
So if Wormholy.setEnabled(false) call was made before it, it will be overridden.

As a simple solution I guess would be to change Wormholy.setEnabled(true) in swiftyInitialize() to Wormholy.setEnabled(isEnabled).

@akovalov akovalov linked a pull request Feb 20, 2025 that will close this issue
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 a pull request may close this issue.

1 participant