Merge pull request #3026

4208b66 WizardModeSelection: optional 'Portable mode' feature support (xiphon)
This commit is contained in:
luigi1111
2020-10-04 17:39:09 -05:00
7 changed files with 76 additions and 13 deletions

View File

@@ -81,6 +81,8 @@
#if defined(Q_OS_WIN)
#include <QOpenGLContext>
#elif defined(Q_OS_MACOS)
#include "qt/macoshelper.h"
#endif
#ifdef WITH_SCANNER
@@ -328,6 +330,10 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
// start listening
QTimer::singleShot(0, ipc, SLOT(bind()));
#if defined(Q_OS_MACOS)
QDir::setCurrent(QDir(MacOSHelper::bundlePath() + QDir::separator() + "..").canonicalPath());
#endif
// screen settings
// Mobile is designed on 128dpi
qreal ref_dpi = 128;