Adding the proposed changes from @SymmetricChaos * Closes https://github.com/emilk/egui/issues/5044 * [x] I have followed the instructions in the PR template * [x] I ran the check script
Adding the proposed changes from @SymmetricChaos * Closes https://github.com/emilk/egui/issues/5044 * [x] I have followed the instructions in the PR template * [x] I ran the check script