mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 10:57:25 -04:00
Merge pull request #2100
171e1fc Fix checking for gui updates (mmbyday)
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -78,9 +78,10 @@
|
||||
bool isIOS = false;
|
||||
bool isAndroid = false;
|
||||
bool isWindows = false;
|
||||
bool isMac = false;
|
||||
bool isLinux = false;
|
||||
bool isDesktop = false;
|
||||
bool isOpenGL = true;
|
||||
bool isLinux = false;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -98,6 +99,8 @@ int main(int argc, char *argv[])
|
||||
bool isWindows = true;
|
||||
#elif defined(Q_OS_LINUX)
|
||||
bool isLinux = true;
|
||||
#elif defined(Q_OS_MAC)
|
||||
bool isMac = true;
|
||||
#endif
|
||||
|
||||
// detect low graphics mode (start-low-graphics-mode.bat)
|
||||
@@ -316,6 +319,8 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
engine.rootContext()->setContextProperty("isWindows", isWindows);
|
||||
engine.rootContext()->setContextProperty("isMac", isMac);
|
||||
engine.rootContext()->setContextProperty("isLinux", isLinux);
|
||||
engine.rootContext()->setContextProperty("isIOS", isIOS);
|
||||
engine.rootContext()->setContextProperty("isAndroid", isAndroid);
|
||||
engine.rootContext()->setContextProperty("isOpenGL", isOpenGL);
|
||||
|
||||
Reference in New Issue
Block a user