Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix: crash when calling setProgressBar on macOS #16374
Description of Change
Depending on the version of macOS and macOS SDK, the system may install a default contentView for the dock, resulting in crashes like #14008.
This PR makes the code correctly check if a progress bar has been installed in dock.
I'm not sure the exact condition to trigger the crash, and it is weird that there isn't much people seeing it. But I'm seeing it on my machine, and I can verify this PR fixes it on my machine.
Notes: Fix crash when calling setProgressBar on macOS