Skip to content

Commit

Permalink
chore: no single instance with debug build on (#350)
Browse files Browse the repository at this point in the history
Co-authored-by: Hualet Wang <[email protected]>
  • Loading branch information
hualet and Hualet Wang authored Aug 23, 2024
1 parent 7a69abb commit 8cc8579
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ int main(int argc, char *argv[])
}

DBusManager manager;

if (!manager.initDBus()) {
// 非第一次启动
#ifndef QT_DEBUG // 非第一次启动则退出,调试编译情况不执行这个逻辑
DBusManager::callTerminalEntry(args);
return 0;
#endif
}
// 第一次启动
// 这行不要删除
Expand Down

0 comments on commit 8cc8579

Please sign in to comment.