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

Remove init() to reduce starting up time #115

Merged
merged 1 commit into from Nov 28, 2022

Conversation

AkihiroSuda
Copy link
Contributor

@AkihiroSuda AkihiroSuda commented Nov 28, 2022

The NSApp is now created in startVirtualMachineWindow().

Which issue(s) this PR fixes:

Fixes:

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@@ -16,10 +16,6 @@ import (
"github.com/Code-Hex/vz/v3/internal/objc"
)

func init() {
C.sharedApplication()
Copy link
Owner

Choose a reason for hiding this comment

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

Actually, it should be called in the main thread before other Objective-C code, but since I did not specify the main thread, I thought it was safe to remove it.

Copy link
Owner

@Code-Hex Code-Hex left a comment

Choose a reason for hiding this comment

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

Let's take a look at this for once.

@Code-Hex Code-Hex merged commit 23eeede into Code-Hex:main Nov 28, 2022
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.

None yet

2 participants