Fix positional issue with release notes dialog on startup
This commit is contained in:
parent
d6294a8370
commit
85e0ff8579
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>867</width>
|
||||
<width>790</width>
|
||||
<height>560</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
|
|
|||
Loading…
Reference in New Issue