修复音频输出设备设置在重启软件后被重置的问题(#1568)
parent
0b125e29b5
commit
f5165d517c
|
@ -5,6 +5,10 @@
|
||||||
|
|
||||||
- 新增Scheme URL对播放器的控制操作,新增的操作包含 播放、暂停、下一首、上一首等,详情看Scheme URL文档
|
- 新增Scheme URL对播放器的控制操作,新增的操作包含 播放、暂停、下一首、上一首等,详情看Scheme URL文档
|
||||||
|
|
||||||
|
### 修复
|
||||||
|
|
||||||
|
- 修复音频输出设备设置在重启软件后被重置的问题(#1568)
|
||||||
|
|
||||||
### 其他
|
### 其他
|
||||||
|
|
||||||
- 更新 electron 到 v22.3.24
|
- 更新 electron 到 v22.3.24
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BrowserWindow, dialog } from 'electron'
|
import { BrowserWindow, dialog, session } from 'electron'
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import { createTaskBarButtons, getWindowSizeInfo } from './utils'
|
import { createTaskBarButtons, getWindowSizeInfo } from './utils'
|
||||||
import { isLinux, isWin } from '@common/utils'
|
import { isLinux, isWin } from '@common/utils'
|
||||||
|
@ -65,6 +65,7 @@ export const createWindow = () => {
|
||||||
const windowSizeInfo = getWindowSizeInfo(global.lx.appSetting['common.windowSizeId'])
|
const windowSizeInfo = getWindowSizeInfo(global.lx.appSetting['common.windowSizeId'])
|
||||||
|
|
||||||
const { shouldUseDarkColors, theme } = global.lx.theme
|
const { shouldUseDarkColors, theme } = global.lx.theme
|
||||||
|
const ses = session.fromPartition('persist:win-main')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initial window options
|
* Initial window options
|
||||||
|
@ -82,6 +83,7 @@ export const createWindow = () => {
|
||||||
fullscreenable: true,
|
fullscreenable: true,
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
session: ses,
|
||||||
nodeIntegrationInWorker: true,
|
nodeIntegrationInWorker: true,
|
||||||
contextIsolation: false,
|
contextIsolation: false,
|
||||||
webSecurity: false,
|
webSecurity: false,
|
||||||
|
|
Loading…
Reference in New Issue