From 6d013ad5975851aa7f8ec7df7bad45aa263c6812 Mon Sep 17 00:00:00 2001 From: r-q Date: Mon, 6 Mar 2023 20:24:22 +0800 Subject: [PATCH] update to 1.29.0 --- main.js | 16 ++++++---------- package.json | 2 +- update.json | 14 +++++++------- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/main.js b/main.js index 305eeff..426df7b 100644 --- a/main.js +++ b/main.js @@ -1011,20 +1011,16 @@ function traySolution(isFullScreen) { if (process.platform === "darwin" && win != null) win.show(); } }, { - label: i18n.__('statistics-work-time') + " " + statistics.get(yearMonDay).workTime + " " + i18n.__('min'), - visible: statistics.get(yearMonDay).workTime > 0 + label: i18n.__('statistics-work-time') + " " + statistics.get(yearMonDay).workTime + " " + i18n.__('min') }, { - label: i18n.__('statistics-rest-time') + " " + statistics.get(yearMonDay).restTime + " " + i18n.__('min'), - visible: statistics.get(yearMonDay).restTime > 0, + label: i18n.__('statistics-rest-time') + " " + statistics.get(yearMonDay).restTime + " " + i18n.__('min') }, { - label: i18n.__('onlyrest') + " " + statistics.get(yearMonDay).onlyRest + " " + i18n.__('min'), - visible: statistics.get(yearMonDay).onlyRest > 0, + label: i18n.__('onlyrest') + " " + statistics.get(yearMonDay).onlyRest + " " + i18n.__('min') }, { - label: i18n.__('positive') + " " + statistics.get(yearMonDay).positive + " " + i18n.__('min'), - visible: statistics.get(yearMonDay).positive > 0 + label: i18n.__('positive') + " " + statistics.get(yearMonDay).positive + " " + i18n.__('min') }, { - label: i18n.__('statistics-time-sum') + " " + statistics.get(yearMonDay).sum + " " + i18n.__('min'), - visible: statistics.get(yearMonDay).sum > 0, + label: i18n.__('statistics-time-sum') + " " + statistics.get(yearMonDay).sum + " " + + i18n.__('min') }], }, { type: 'separator' diff --git a/package.json b/package.json index f1fce45..cfdaec1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "wnr", - "version" : "1.28.1", + "version" : "1.29.0", "description" : "Work and rest, with wnr now!", "main" : "main.js", "scripts" : { diff --git a/update.json b/update.json index 0068ab6..404c607 100644 --- a/update.json +++ b/update.json @@ -1,18 +1,18 @@ { - "version" : "1.28.1", + "version" : "1.29.0", "feature-introduction" : false, "content" : { "zh-CN" : [ - "对 Windows 系统,增加了任务栏图标上直接显示剩余时间的功能,并优化了任务栏显示。", - "修复了几个小问题,并升级软件依赖项到最新版本。" + "新增了开启软件时自动开启默认任务的功能。", + "优化了托盘菜单的功能,允许直接在其中查看当天计时和直接取消计时。" ], "zh-TW" : [ - "對 Windows 系統,增加了任務欄圖標上直接顯示剩余時間的功能,並優化了任務欄顯示。", - "修復了幾個小問題,並升級軟件依賴項到最新版本。" + "新增了開啟軟件時自動開啟默認任務的功能。", + "優化了托盤菜單的功能,允許直接在其中查看當天計時和直接取消計時。" ], "en" : [ - "New feature: show remaining time directly on the taskbar icon for Windows.", - "Fixed several bugs, and updated the dependencies." + "New feature: auto start default task when starting wnr.", + "New feature: better tray menu, allowing directly see today's statistics and cancel timing." ] }, "introduce" : {