1
0
Эх сурвалжийг харах

turn on -m by default on macOS

Le Tan 5 жил өмнө
parent
commit
49e7ca0fa0
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      src/main.cpp

+ 4 - 0
src/main.cpp

@@ -120,7 +120,11 @@ void VLogger(QtMsgType type, const QMessageLogContext &context, const QString &m
 
 int main(int argc, char *argv[])
 {
+#if defined(Q_OS_MACOS) || defined(Q_OS_MAC)
+    bool allowMultiInstances = true;
+#else
     bool allowMultiInstances = false;
+#endif
     for (int i = 1; i < argc; ++i) {
         if (!qstrcmp(argv[i], "-m")) {
             allowMultiInstances = true;