Skip to content

Fix crash setting progress after setting dock icon#6091

Merged
zcbenz merged 3 commits intomasterfrom
icon-progress-crash
Jun 17, 2016
Merged

Fix crash setting progress after setting dock icon#6091
zcbenz merged 3 commits intomasterfrom
icon-progress-crash

Conversation

@kevinsawicki
Copy link
Copy Markdown
Contributor

Add progress indicator whenever the dock tile's content view is empty.

Previously calling setProgressBar after app.dock.setIcon would crash because the subviews array was empty.

This also adds a simple spec to verify the setProgressBar API does not throw which will give some coverage to these APIs for crashes or parameter conversion errors.

Thanks @fasterthanlime for the great investigation.

Closes #6056

@zcbenz zcbenz merged commit 57ed682 into master Jun 17, 2016
@zcbenz zcbenz deleted the icon-progress-crash branch June 17, 2016 03:29
@zcbenz
Copy link
Copy Markdown
Contributor

zcbenz commented Jun 17, 2016

👍

@fasterthanlime
Copy link
Copy Markdown
Contributor

Thanks for the timely fix! 🌟

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.

3 participants