Skip to content

Ignore empty effectpreset files#6566

Open
cybercop23 wants to merge 2 commits into
xLightsSequencer:masterfrom
cybercop23:ignore_empty_presets
Open

Ignore empty effectpreset files#6566
cybercop23 wants to merge 2 commits into
xLightsSequencer:masterfrom
cybercop23:ignore_empty_presets

Conversation

@cybercop23

Copy link
Copy Markdown
Collaborator

With the move to the JSON file, if a backup file exists and it is empty, you get prompted about a newer file.
Ignore if file is empty, ie: no presets. Also, don't save the file if there are no presets to be saved.

Copilot AI review requested due to automatic review settings June 17, 2026 00:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates effect preset JSON/backup handling to avoid creating or prompting about empty preset files, and documents the behavior change in the release notes.

Changes:

  • Skip “newer backup” prompts by deleting empty backup preset files on load.
  • Avoid writing empty effect preset JSON files; delete existing preset JSON when there are no presets.
  • Update release notes describing the new behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src-ui-wx/app-shell/TabSequence.cpp Adds logic to skip empty preset JSON/backup creation and cleanup empty/stale backup files.
README.txt Adds a release note entry describing the preset JSON/backup behavior change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src-ui-wx/app-shell/TabSequence.cpp
Comment thread src-ui-wx/app-shell/TabSequence.cpp Outdated
Comment thread README.txt
@derwin12

Copy link
Copy Markdown
Contributor

Lets remove the code about deleting a file ..

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.

3 participants