diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-26 00:43:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-26 00:43:42 +0100 |
| commit | a5a684f05a529e9c79eeb8f168e7e8d3368c9299 (patch) | |
| tree | 9af3995eb12b23dac1533d33ca7effbdee1b37b7 | |
| parent | 93d5ea42dfc864fae94d1fb1d2b3176e3d2bf37a (diff) | |
Don't show release notes if we don't know where we last showed them.
| -rw-r--r-- | src/lib/release_notes.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/release_notes.cc b/src/lib/release_notes.cc index 64556bb26..c2e644da7 100644 --- a/src/lib/release_notes.cc +++ b/src/lib/release_notes.cc @@ -72,15 +72,16 @@ find_release_notes(bool dark, optional<string> current) return {}; } + /* It's been a while now since we added release notes. Don't show them + * for (potentially) long ago previous unknowns any more. + */ + if (!last) { + last = *current; + } + Config::instance()->set_last_release_notes_version(*current); vector<string> notes; - if (!last) { - notes.push_back(_("In this version there are changes to the way that subtitles are positioned. " - "Positioning should now be more correct, with respect to the standards, but you " - "should check any subtitles in your project to make sure that they are placed " - "where you want them.")); - } if (before(last, "2.17.19")) { notes.push_back(_("The vertical offset control for some subtitles now works in the opposite direction " |
