diff options
| author | xiphon <xiphon@protonmail.com> | 2020-07-28 17:46:52 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-09-22 15:08:18 +0000 |
| commit | 4208b66baf2b1c403f4388eb4720586ad3406dce (patch) | |
| tree | a4aa669c42e1227d99858eaf821b975958bf1313 /src/main/main.cpp | |
| parent | c137a6ea36040aee20366933935805eff67ae3f8 (diff) | |
| download | monzero-gui-4208b66baf2b1c403f4388eb4720586ad3406dce.tar.gz monzero-gui-4208b66baf2b1c403f4388eb4720586ad3406dce.tar.xz monzero-gui-4208b66baf2b1c403f4388eb4720586ad3406dce.zip | |
WizardModeSelection: optional 'Portable mode' feature support
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index 41b41faa..b0404165 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -78,6 +78,8 @@ #if defined(Q_OS_WIN) #include <QOpenGLContext> +#elif defined(Q_OS_MACOS) +#include "qt/macoshelper.h" #endif #ifdef WITH_SCANNER @@ -323,6 +325,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; |
