소스 검색

mod:关闭窗口调整

panqiuyao 7 달 전
부모
커밋
99335414bb
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      electron/controller/camera.js

+ 7 - 2
electron/controller/camera.js

@@ -119,7 +119,9 @@ function closeCameraControlTips() {
 
 
       if (title === "digiCamControl by Duka Istvan") {
       if (title === "digiCamControl by Duka Istvan") {
         console.log(title);
         console.log(title);
-        window.hide()
+        console.log(window);
+        window.minimize(); // 关闭窗口
+        //   window.hide()
         break;
         break;
       }
       }
     }
     }
@@ -129,7 +131,7 @@ function closeCameraControlTips() {
 
 
 
 
 }
 }
-let  isOPen = false
+let  isOPen = true
 class CameraController extends Controller {
 class CameraController extends Controller {
   constructor(ctx) {
   constructor(ctx) {
     super(ctx);
     super(ctx);
@@ -137,6 +139,9 @@ class CameraController extends Controller {
 
 
   async connect() {
   async connect() {
     try {
     try {
+      await getParams('iso').catch(e=>{
+        isOPen = false;
+      })
       if(!isOPen){
       if(!isOPen){
         await checkCameraControlCmdExists()
         await checkCameraControlCmdExists()
         await  CMD('All_Minimize')
         await  CMD('All_Minimize')