浏览代码

turn on -m by default on macOS

Le Tan 5 年之前
父节点
当前提交
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;