Improve crash report window on Windows.

This commit is contained in:
John Preston 2023-02-02 10:48:24 +04:00
parent e10964a0bc
commit a4cdd83816
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/zlib_help.h"
#include <QtWidgets/QFileDialog>
#include <QtGui/QFontInfo>
#include <QtGui/QScreen>
#include <QtGui/QDesktopServices>
#include <QtCore/QStandardPaths>
@ -43,7 +44,7 @@ PreLaunchWindow::PreLaunchWindow(QString title) {
p.setColor(QPalette::Window, QColor(255, 255, 255));
setPalette(p);
_size = QFontMetrics(font()).height();
_size = QFontInfo(font()).pixelSize();
int paddingVertical = (_size / 2);
int paddingHorizontal = _size;

View File

@ -404,7 +404,7 @@ if customRunCommand:
stage('patches', """
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout 3e11c652e1
git checkout 73fe30738d
""")
stage('msys64', """