|
@@ -307,19 +307,29 @@ function mainToMaxEvent() {
|
|
|
|
|
|
setInterval(function() {
|
|
|
|
|
|
- if (mainWindow == null || mainWindow == undefined) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- let mainToMax = CommonVar.find().cacheGetOrUpdate('get', 'mainToMax');
|
|
|
-
|
|
|
- if (mainToMax === null) {
|
|
|
- return;
|
|
|
+ // console.log("mainWindow --------- start");
|
|
|
+ // console.log(mainWindow);
|
|
|
+ // console.log("mainWindow --------- end");
|
|
|
+
|
|
|
+ try {
|
|
|
+
|
|
|
+ if (mainWindow == null || mainWindow == undefined) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ let mainToMax = CommonVar.find().cacheGetOrUpdate('get', 'mainToMax');
|
|
|
+
|
|
|
+ if (mainToMax === null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ mainWindow.maximize();
|
|
|
+ CommonVar.find().cacheGetOrUpdate('set', 'mainToMax', null);
|
|
|
+
|
|
|
+ } catch (e) {
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
- CommonVar.find().cacheGetOrUpdate('set', 'mainToMax', null);
|
|
|
- mainWindow.maximize();
|
|
|
-
|
|
|
+
|
|
|
}, 1000)
|
|
|
|
|
|
}
|