Fix jumping of selected effect on refresh #3466
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
This fixes the problem that the selected effect jumps to the bottom and back on a refresh.
For example, if you select the effect rainbow and there is a refresh, it jumps from this:
![grafik](https://private-user-images.githubusercontent.com/27882680/276899301-86dec951-0358-42ae-96b8-ec2349d69ac0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyMTYyOTUsIm5iZiI6MTcyNTIxNTk5NSwicGF0aCI6Ii8yNzg4MjY4MC8yNzY4OTkzMDEtODZkZWM5NTEtMDM1OC00MmFlLTk2YjgtZWMyMzQ5ZDY5YWMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDE4Mzk1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVhYzQ2NTgxMWFiZWU0OTMxNzA1OGViYzlhYzY0YTcwYjY3NjgxMGY1MDZmMzQ1YzQ0OTUwYWYzN2M3NjJjNzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kEGzkDuX7GW3QUE3ADknrKhKGKX6qSgdQtmGazOFT7k)
![grafik](https://private-user-images.githubusercontent.com/27882680/276900673-6787d68a-6214-404b-ad77-7fd2653a1eea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyMTYyOTUsIm5iZiI6MTcyNTIxNTk5NSwicGF0aCI6Ii8yNzg4MjY4MC8yNzY5MDA2NzMtNjc4N2Q2OGEtNjIxNC00MDRiLWFkNzctN2ZkMjY1M2ExZWVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDE4Mzk1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiZTZlZWY4MTQ2ZGY4ZmE5NTVjNDJlZGEyZjQ2NTgxZTJiM2YyMzNhOTRiYjczOWQ4MTY4MjcxMzRiZGIyNDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TTLK4gQC2QKISC6tdnUY-RFDZy04_ImMWcXoEnzpy1w)
To this:
And then back.
To reproduce this, just select the rainbow effect, go to Info and click on the refresh button a few times. Then you should see it in the background.