Skip to content
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

Fix mod disable toggle #1290

Merged
merged 2 commits into from
Apr 15, 2024
Merged

Fix mod disable toggle #1290

merged 2 commits into from
Apr 15, 2024

Conversation

anttimaki
Copy link
Collaborator

No description provided.

When mod disabled status was toggled multiple times while the first
change was processed, the files ended up with multiple suffixes. When
the mod was then toggled to enabled the files still had the suffix and
the mod would now be loaded.

The caveat is that any files that actually using .old as file extension
will get it ripped off if the mod is disabled and enabled again. While
not ideal, I see this as the lesser evil.
- Prevent mod enable/disable toggle starting another process while one
  is already in progress
- Don't disable the input element itself, since this would show a
  disabled checkbox while the process is in progress, and I don't want
  to deal with the CSS right now
- Make switch ids unique
@anttimaki anttimaki requested a review from MythicManiac April 9, 2024 13:29
@anttimaki anttimaki merged commit d2f63f3 into develop Apr 15, 2024
7 checks passed
@anttimaki anttimaki deleted the fix-disable-toggle branch April 15, 2024 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant