File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,10 @@ func onReady(a *App) {
139139 systray .SetTooltip ("go-stock 股票行情实时获取" )
140140
141141 // 创建菜单项
142- mQuitOrig := systray .AddMenuItem ("退出" , "退出应用程序" )
143142 show := systray .AddMenuItem ("显示" , "显示应用程序" )
144143 hide := systray .AddMenuItem ("隐藏" , "隐藏应用程序" )
144+ systray .AddSeparator ()
145+ mQuitOrig := systray .AddMenuItem ("退出" , "退出应用程序" )
145146
146147 // 监听菜单项点击事件
147148 go func () {
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ async function monitor() {
203203 }else if (result .profitAmount < 0 ){
204204 result .profitType = " success"
205205 }
206- if (Math . abs ( res[0 ].AlarmChangePercent ) > 0 && roundedNum> res[0 ].AlarmChangePercent ){
206+ if (res[0 ].AlarmChangePercent > 0 && Math . abs ( roundedNum) > res[0 ].AlarmChangePercent ){
207207 SendMessage (result)
208208 }
209209 }
You can’t perform that action at this time.
0 commit comments