diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-10-04 17:39:09 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-10-04 17:39:09 -0500 |
| commit | 40e108eb2b7871f686586ba1a1306c8f1402ec5d (patch) | |
| tree | 015940758659b967171b78adfbc5833b2588f1cb /src/main | |
| parent | cdfe9f338fdf46b301fd6eb627b13109fca561ff (diff) | |
| parent | 4208b66baf2b1c403f4388eb4720586ad3406dce (diff) | |
| download | monzero-gui-40e108eb2b7871f686586ba1a1306c8f1402ec5d.tar.gz monzero-gui-40e108eb2b7871f686586ba1a1306c8f1402ec5d.tar.xz monzero-gui-40e108eb2b7871f686586ba1a1306c8f1402ec5d.zip | |
Merge pull request #3026
4208b66 WizardModeSelection: optional 'Portable mode' feature support (xiphon)
Diffstat (limited to 'src/main')
| -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 a738c78a..90bd5106 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -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; |
