FlashGBX icon indicating copy to clipboard operation
FlashGBX copied to clipboard

Don't set QT_MAC_WANTS_LAYER on modern macOS

Open aronson opened this issue 1 year ago • 1 comments

When you boot up FlashGBX on modern macOS you get this warning in the console

qt.qpa.drawing: Layer-backing is always enabled.  QT_MAC_WANTS_LAYER/_q_mac_wantsLayer has no effect.

I don't like seeing it, so I researched. It was fixed in Big Sur. I added a guard to the environment variable set to only set it on platforms where it'll potentially have an effect.

aronson avatar Feb 16 '24 00:02 aronson

Just saw this issue #6 and I see I missed the version by one major version. It was fixed in macOS 12. not 11, sorry for the confusion. Bumped up the version.

aronson avatar Feb 16 '24 00:02 aronson