Skip to content

Commit

Permalink
update to 1.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Mar 6, 2023
1 parent b0b5789 commit 6d013ad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
16 changes: 6 additions & 10 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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" : {
Expand Down
14 changes: 7 additions & 7 deletions update.json
Original file line number Diff line number Diff line change
@@ -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" : {
Expand Down

0 comments on commit 6d013ad

Please sign in to comment.