Skip to content

Fix annotations menu when loading movie file with --read CLI option#693

Open
Perdu wants to merge 1 commit intoclementgallet:masterfrom
Perdu:fix_annotations
Open

Fix annotations menu when loading movie file with --read CLI option#693
Perdu wants to merge 1 commit intoclementgallet:masterfrom
Perdu:fix_annotations

Conversation

@Perdu
Copy link
Copy Markdown
Contributor

@Perdu Perdu commented Dec 6, 2025

Issue

When launching libTAS with the --read option to load a movie file (also probably with -w), the annotations menu is greyed out and it is not possible to edit them.

Analysis

In MainWindow.cpp, annotateMovieAction is set to false by default, and only set to true in slotMovieEnable(), called when the user clicks on the checkbox. The case where the checkbox is on when libTAS starts (due to using -w or -r) is not taken into account.

Solution

Instead of setting annotateMovieAction to false by default, we evaluate whether a movie is loaded to set its value. For this, I reused the logic used in updateMovieParams().

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