8000 Fix profile delete causing errors fetching current profile by Kuuuube · Pull Request #2046 · yomidevs/yomitan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix profile delete causing errors fetching current profile #2046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2025

Conversation

Kuuuube
Copy link
Member
@Kuuuube Kuuuube commented Jun 12, 2025

Duplicating or adding a new profile does not change the profile to the new profile. It always adds onto the end of the list. It will never need to set the currently active profile index.

Setting the profile here causes a desync of the active profile which causes other functions to request the wrong profile index when trying to get the current profile. Deleting this profile after adding it causes index out of range errors.

Likely missed this when implementing #1983.

@Kuuuube Kuuuube requested a review from a team as a code owner June 12, 2025 18:57
@Kuuuube Kuuuube added the kind/bug The issue or PR is regarding a bug label Jun 12, 2025
@jamesmaa jamesmaa added this pull request to the merge queue Jun 15, 2025
Merged via the queue into yomidevs:master with commit 2623b59 Jun 15, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0