This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
appcat
/
sonist
Archived
1
0
Fork 0

修复歌词调整导致app无响应的bug

2.x
宇天 2019-01-27 17:55:11 +08:00
parent 47c8a1f9f3
commit 68fe06367c
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "sonist",
"version": "0.9.5",
"version": "0.9.6",
"description": "Music Player",
"main": "src/main.js",
"scripts": {

View File

@ -29,6 +29,8 @@ class Lyrics {
this.__ID__ = id
log(id)
this.lib = lrc
.split('\n')
.map(it => {
@ -104,7 +106,7 @@ class Lyrics {
// 延时3秒写入
this.__TIMER__ = setTimeout(() => {
ipcRenderer.sendSync('save-lrc', { id: this.__ID__, lrc })
ipcRenderer.send('save-lrc', { id: this.__ID__, lrc })
}, 3000)
}