1
0
Fork 0

Fix positional issue with release notes dialog on startup

This commit is contained in:
Duncan Ogilvie 2025-08-19 21:36:23 +02:00
parent d6294a8370
commit 85e0ff8579
2 changed files with 5 additions and 2 deletions

View File

@ -1245,7 +1245,10 @@ void MainWindow::showReleaseNotes(duint cutoffEpoch)
}
ReleaseNotesDialog dialog({}, this);
dialog.move(frameGeometry().center() - dialog.rect().center());
auto titleBarHeight = frameGeometry().height() - geometry().height();
auto position = frameGeometry().center() - dialog.frameGeometry().center();
position.setY(position.y() - titleBarHeight / 2);
dialog.move(position);
dialog.setMarkdown(markdown, "https://github.com/x64dbg/x64dbg/issues/");
dialog.setWindowIcon(DIcon("bug"));
dialog.exec();

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>867</width>
<width>790</width>
<height>560</height>
</rect>
</property>