diff --git a/src/components/Play.vue b/src/components/Play.vue
index 4faf9b5..10e92eb 100644
--- a/src/components/Play.vue
+++ b/src/components/Play.vue
@@ -1570,7 +1570,7 @@ export default {
},
minMaxEvent () {
win.on('minimize', () => {
- if (this.xg && this.xg.hasStart) {
+ if (this.xg && this.xg.hasStart && this.setting.pauseWhenMinimize) {
this.xg.pause()
}
})
diff --git a/src/components/Setting.vue b/src/components/Setting.vue
index a7251cc..befca8b 100644
--- a/src/components/Setting.vue
+++ b/src/components/Setting.vue
@@ -111,10 +111,11 @@
diff --git a/src/lib/dexie/dexie.js b/src/lib/dexie/dexie.js
index a2c9174..30698ce 100644
--- a/src/lib/dexie/dexie.js
+++ b/src/lib/dexie/dexie.js
@@ -75,7 +75,7 @@ db.version(10).stores({
db.version(11).stores({
setting: 'id, theme, shortcut, view, volume, externalPlayer, searchGroup, excludeRootClasses, excludeR18Films, forwardTimeInSec, starViewMode, recommandationViewMode,' +
- 'searchViewMode, password, proxy, allowPassWhenIptvCheck, autocleanWhenIptvCheck, rootClassFilter, r18ClassFilter, classFilter, restoreWindowPositionAndSize, windowPositionAndSize'
+ 'searchViewMode, password, proxy, allowPassWhenIptvCheck, autocleanWhenIptvCheck, rootClassFilter, r18ClassFilter, classFilter, restoreWindowPositionAndSize, windowPositionAndSize, pauseWhenMinimize'
}).upgrade(trans => {
trans.setting.toCollection().modify(setting => {
setting.restoreWindowPositionAndSize = false
@@ -85,6 +85,7 @@ db.version(11).stores({
width: 1080,
height: 720
}
+ setting.pauseWhenMinimize = false
})
})
diff --git a/src/lib/dexie/iniSetting.json b/src/lib/dexie/iniSetting.json
index 90d0dcc..ad12525 100644
--- a/src/lib/dexie/iniSetting.json
+++ b/src/lib/dexie/iniSetting.json
@@ -71,5 +71,12 @@
"里番",
"VIP"
],
- "restoreWindowSize": false
+ "restoreWindowPositionAndSize": false,
+ "windowPositionAndSize": {
+ "x": 0,
+ "y": 0,
+ "width": 1080,
+ "height": 720
+ },
+ "pauseWhenMinimize": false
}]
\ No newline at end of file