Skip to content

Commit

Permalink
fixed bug where we weren't resetting the Pause button when the user m…
Browse files Browse the repository at this point in the history
…anually loaded a new verse by clicking on the status line
  • Loading branch information
bobeaton committed Mar 9, 2024
1 parent b5f600b commit 63eca10
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ private void TextBoxStatus_Click(object sender, System.EventArgs e)

if (textBoxStatus.Tag is IVerseRef newReference)
{
// whether we're reloading or not, if it's paused, then reset it
if (backTranslationHelperCtrl.IsPaused)
backTranslationHelperCtrl.SetPausedAndImage(false);

// allow the user to decide whether to overwrite the edits (but only if he's back on the same verse we paused on. If not, then
// we have to update)
var hasVerseChanged = newReference?.ToString() != _verseReference?.ToString();
Expand All @@ -432,8 +436,7 @@ private void TextBoxStatus_Click(object sender, System.EventArgs e)
ParatextBackTranslationHelperPlugin.PluginName, MessageBoxButtons.YesNo) == DialogResult.No);
if (overwriteEdits)
{
backTranslationHelperCtrl.IsPaused = // just in case it was... the user doesn't want that anymore
backTranslationHelperCtrl.IsModified = false; // putting this before GetNewReference causes us to refresh the editable box also
backTranslationHelperCtrl.IsModified = false; // putting this before GetNewReference causes us to refresh the editable box also
}
GetNewReference(newReference);

Expand Down

0 comments on commit 63eca10

Please sign in to comment.