Skip to content

Commit

Permalink
fix: 更新版本 2.33.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Jan 23, 2025
1 parent 7eb2bde commit dc1040b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 20 deletions.
8 changes: 8 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

- 没有特别说明的版本都是修复问题

## 2.33.2

- 抑制了当更新检查的网络访问被拒绝时的报错
- 移除了一个不合理的特性
- 对于显示符号的窗口,当鼠标不在此窗口中时,符号会被隐藏
- 这是一个不合理的特性
- 对于一些很小的窗口,如 `PowerToys Run`(`PowerToys.PowerLauncher.exe`),这个特性反而导致许多应该显示的情况被意外隐藏

## 2.33.1

- 修复了在以下情况时,处于对应状态未隐藏的问题
Expand Down
Binary file modified src/InputTip.JAB.JetBrains.exe
Binary file not shown.
34 changes: 18 additions & 16 deletions src/utils/check-version.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,28 @@ checkVersion(currentVersion, callback, urls := [
callback(info.version, info.url)
return 1
}
req := ComObject("Msxml2.XMLHTTP")
req.open("GET", url, true)
req.onreadystatechange := Ready
req.send()
Ready() {
if (req.readyState != 4) ; 没有完成.
return
if (req.status == 200) {
if (info.version) {
try {
req := ComObject("Msxml2.XMLHTTP")
req.open("GET", url, true)
req.onreadystatechange := Ready
req.send()
Ready() {
if (req.readyState != 4) ; 没有完成.
return
}
newVersion := Trim(StrReplace(StrReplace(StrReplace(req.responseText, "`r", ""), "`n", ""), "v", ""))
if (newVersion ~= "^[\d\.]+$" && compareVersion(newVersion, currentVersion) > 0) {
if (req.status == 200) {
if (info.version) {
return
}
info.version := newVersion
info.url := url
try {
callback(newVersion, url)
newVersion := Trim(StrReplace(StrReplace(StrReplace(req.responseText, "`r", ""), "`n", ""), "v", ""))
if (newVersion ~= "^[\d\.]+$" && compareVersion(newVersion, currentVersion) > 0) {
if (info.version) {
return
}
info.version := newVersion
info.url := url
try {
callback(newVersion, url)
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/options.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ InstallKeybdHook
CoordMode 'Mouse', 'Screen'
SetStoreCapsLockMode 0

;@AHK2Exe-SetVersion 2.33.1
currentVersion := "2.33.1"
;@AHK2Exe-SetVersion 2.33.2
currentVersion := "2.33.2"
2 changes: 1 addition & 1 deletion src/utils/show.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ while 1 {
}
}
}
if (!symbolType || needHide || isMouseOver("ahk_class Shell_TrayWnd") || !isMouseOver("ahk_exe " lastWindow)) {
if (!symbolType || needHide || isMouseOver("ahk_class Shell_TrayWnd")) {
hideSymbol()
needShow := 0
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.33.1
2.33.2

0 comments on commit dc1040b

Please sign in to comment.