mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
turn on -m by default on macOS
This commit is contained in:
parent
42d7ae0f9a
commit
49e7ca0fa0
@ -120,7 +120,11 @@ void VLogger(QtMsgType type, const QMessageLogContext &context, const QString &m
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#if defined(Q_OS_MACOS) || defined(Q_OS_MAC)
|
||||||
|
bool allowMultiInstances = true;
|
||||||
|
#else
|
||||||
bool allowMultiInstances = false;
|
bool allowMultiInstances = false;
|
||||||
|
#endif
|
||||||
for (int i = 1; i < argc; ++i) {
|
for (int i = 1; i < argc; ++i) {
|
||||||
if (!qstrcmp(argv[i], "-m")) {
|
if (!qstrcmp(argv[i], "-m")) {
|
||||||
allowMultiInstances = true;
|
allowMultiInstances = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user