Skip to content
代码片段 群组 项目
提交 4d4bc1ca 编辑于 作者: Jing Teng's avatar Jing Teng
浏览文件

fix ZAP UI lock up when generation is called on mac

BUG: ZAPP-878
上级 aa9f98b0
No related branches found
No related tags found
无相关合并请求
......@@ -47,7 +47,7 @@ function hookMainInstanceEvents(argv: args.Arguments) {
)
)
if (!argv._.includes('server')) {
if (!argv._.includes('server') && !argv.noServer) {
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
......@@ -74,10 +74,9 @@ function hookMainInstanceEvents(argv: args.Arguments) {
let argv = args.processCommandLineArguments(process.argv)
let reuseZapInstance = argv.reuseZapInstance
let canProceedWithThisInstance
let gotLock = app.requestSingleInstanceLock()
if (reuseZapInstance) {
canProceedWithThisInstance = gotLock
canProceedWithThisInstance = app.requestSingleInstanceLock()
} else {
canProceedWithThisInstance = true
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册