feat(dcauth): 新增常驻托盘客户端与版本显示
Windows 改为单实例托盘常驻,协议唤起只弹一个确认窗口;补充 macOS 后台守护进程 与客户端版本显示。
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
//go:build darwin
|
||||
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestAppleScriptStringEscapesDialogText(t *testing.T) {
|
||||
got := appleScriptString("第一行\n第二行 \"确认\" \\ DCAuth")
|
||||
want := `"第一行\n第二行 \"确认\" \\ DCAuth"`
|
||||
if got != want {
|
||||
t.Fatalf("appleScriptString() = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user