Skip to content

Commit

Permalink
fix: set tray title
Browse files Browse the repository at this point in the history
  • Loading branch information
maotoumao committed Jun 25, 2024
1 parent d1d0528 commit 5bf57e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion release/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"version": "0.0.4",
"version": "0.0.5",
"changeLog": [
"【修复】修复重启软件后歌单丢失的问题;如果未出现上述问题可忽略此版本更新",
"--- 以下为 0.0.4 更新 ---",
"1. 【功能】播放列表支持拖拽排序",
"2. 【功能】支持多语言。本次支持简体中文、繁体中文、英文、西班牙语",
"3. 【功能】支持歌词翻译功能(需要插件实现getLyric方法)",
Expand Down
1 change: 1 addition & 0 deletions src/main/tray/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export async function setupTrayMenu() {
export function setTrayTitle(str: string) {
if (!str || !str.length) {
tray.setTitle("");
return;
}
if (str.length > 7) {
tray?.setTitle(" " + str.slice(0) + "...");
Expand Down

0 comments on commit 5bf57e8

Please sign in to comment.