Skip to content

Commit 61215a2

Browse files
committed
Always display most recent release notes in development builds
1 parent b85b2f9 commit 61215a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/Src/Gui/MainWindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,7 @@ void MainWindow::showReleaseNotes(duint cutoffEpoch)
12281228
{
12291229
static QRegularExpression re(R"(<!-- *(\d\d\d\d.\d\d.\d\d) *-->)");
12301230
auto i = re.globalMatch(markdown);
1231+
bool seenCutoff = false;
12311232
QStringList words;
12321233
while(i.hasNext())
12331234
{
@@ -1236,11 +1237,12 @@ void MainWindow::showReleaseNotes(duint cutoffEpoch)
12361237
auto matchDate = QDateTime::fromString(matchText, "yyyy.MM.dd");
12371238
matchDate.setTimeSpec(Qt::UTC);
12381239
auto matchEpoch = matchDate.toSecsSinceEpoch();
1239-
if(matchEpoch <= cutoffEpoch)
1240+
if(matchEpoch <= cutoffEpoch && seenCutoff)
12401241
{
12411242
markdown = markdown.left(match.capturedStart(0));
12421243
break;
12431244
}
1245+
seenCutoff = true;
12441246
}
12451247
}
12461248

0 commit comments

Comments
 (0)