Skip to content

Commit

Permalink
some enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
SydneyOwl committed Jun 3, 2024
1 parent b20af84 commit 372decf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion entrance/gui/gui_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func updateBtConnStat(addr bluetooth.Address, ctx context.Context) {
gui_tool.AddLog("传输完成!对讲机将重启,您可以退出了...")
ui.MsgBox(mainwin,
"提醒",
"传输完成!对讲机将重启!")
"传输完成!对讲机将重启!如未写频完成但出现该提示,请等待写频完成后再关闭该提示窗口!")
} else {
gui_tool.AddLog("出现异常,如果对讲机写频完成后重启了或者对讲机已经被关闭,您可以忽略提示" + err.Error())
ui.MsgBoxError(mainwin,
Expand Down
3 changes: 1 addition & 2 deletions entrance/shell/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,9 @@ func StartAndRun() {
go func() {
err := <-errChan
if errors.Is(err, exceptions.TransferDone) {
slog.Noticef("传输完成!对讲机将重启,按下回车键退出...")
slog.Noticef("传输完成!对讲机将重启,按下回车键退出。如未写频完成但出现该提示,请等待写频完成后再按下回车键退出...")
} else {
slog.Warnf("出现异常:%v,如果对讲机写频完成后重启了或者对讲机已经被关闭,您可以忽略提示,按下回车键以退出", err)
once.Do(doShutup)
}
}()
_, _ = fmt.Scanln()
Expand Down

0 comments on commit 372decf

Please sign in to comment.