修复Deepin 20下启用桌面歌词时可能会导致桌面卡死的问题
parent
fa3fd8d8a4
commit
5097102ca1
|
@ -15,6 +15,7 @@
|
||||||
- 修复播放某些在线音频会没有声音的问题
|
- 修复播放某些在线音频会没有声音的问题
|
||||||
- 修复改变播放速率时会导致歌词报错的问题
|
- 修复改变播放速率时会导致歌词报错的问题
|
||||||
- 修复tx热门评论昵称被错误切割的问题 (#1397, By: @helloplhm-qwq, @Folltoshe)
|
- 修复tx热门评论昵称被错误切割的问题 (#1397, By: @helloplhm-qwq, @Folltoshe)
|
||||||
|
- 修复Deepin 20下启用桌面歌词时可能会导致桌面卡死的问题(#1288)
|
||||||
|
|
||||||
### 其他
|
### 其他
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { BrowserWindow } from 'electron'
|
import { BrowserWindow } from 'electron'
|
||||||
import { debounce, isLinux } from '@common/utils'
|
import { debounce, isLinux, isWin } from '@common/utils'
|
||||||
import { initWindowSize } from './utils'
|
import { initWindowSize } from './utils'
|
||||||
import { mainSend } from '@common/mainIpc'
|
import { mainSend } from '@common/mainIpc'
|
||||||
import { encodePath } from '@common/utils/electron'
|
import { encodePath } from '@common/utils/electron'
|
||||||
|
@ -41,7 +41,7 @@ const winEvent = () => {
|
||||||
'desktopLyric.width': bounds.width,
|
'desktopLyric.width': bounds.width,
|
||||||
'desktopLyric.height': bounds.height,
|
'desktopLyric.height': bounds.height,
|
||||||
})
|
})
|
||||||
} else {
|
} else if (isWin) { // Linux 不允许将窗口设置出屏幕之外,MacOS未知,故只在Windows下执行强制设置
|
||||||
// 非主动调整窗口触发的窗口位置变化将重置回设置值
|
// 非主动调整窗口触发的窗口位置变化将重置回设置值
|
||||||
browserWindow!.setBounds({
|
browserWindow!.setBounds({
|
||||||
x: global.lx.appSetting['desktopLyric.x'] ?? 0,
|
x: global.lx.appSetting['desktopLyric.x'] ?? 0,
|
||||||
|
|
Loading…
Reference in New Issue