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

[MM-50536] Add workaround for Dev Tools not opening correctly on Mac #2777

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

devinbinnie
Copy link
Member

Summary

Some reports were happening of developers having trouble opening the Dev Tools on macOS, requiring them to restart the Desktop App to make it work. After some investigating, I noticed that the devtools-closed event wasn't firing and the isDevToolsOpened() call was returning true. This was happening everytime I would open a Dev Tools window for one server, then open a second window for a different, close the original one and then try to re-open the original one.

I unfortunately wasn't able to find the root cause of this, since nothing had been reported to Electron and I wasn't able to reproduce on a Fiddle, so what I've done is create a workaround in which we check if the Dev Tools was successfully opened after the call was made, and if not we manually call closeDevTools() and then re-open, which seems to solve the issue.

Ticket Link

https://mattermost.atlassian.net/browse/MM-50536

NONE

@devinbinnie devinbinnie added the 2: Dev Review Requires review by a core committer label Jun 28, 2023
@devinbinnie devinbinnie added this to the v5.5.0 milestone Jun 28, 2023
Copy link
Member

@marianunez marianunez left a comment

Choose a reason for hiding this comment

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

Thanks @devinbinnie!

@hmhealey hmhealey added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Jun 30, 2023
@hmhealey
Copy link
Member

Weird. This fix works well enough for me though

@hmhealey hmhealey merged commit 0519a11 into mattermost:master Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants