Skip to content

Commit

Permalink
Fix the Subtitles button in PlayMovie not showing the form
Browse files Browse the repository at this point in the history
it was immediately disposed woops
  • Loading branch information
Morilli committed Jun 5, 2024
1 parent f90cd20 commit 6ffe5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BizHawk.Client.EmuHawk/movie/PlayMovie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ private void SubtitlesBtn_Click(object sender, EventArgs e)
var movie = _movieSession.Get(_movieList[MovieView.SelectedIndices[0]].Filename);
movie.Load();
// TODO movie should be disposed if movie is ITasMovie
using EditSubtitlesForm s = new(DialogController, movie, _config.PathEntries, readOnly: true);
s.Show();
var form = new EditSubtitlesForm(DialogController, movie, _config.PathEntries, readOnly: true);
form.Show();
}
}

Expand Down

0 comments on commit 6ffe5a0

Please sign in to comment.