Skip to content

Commit

Permalink
Remove default github proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
libsgh committed Feb 1, 2024
1 parent a36f5a5 commit 2e13b70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chrome_plus.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func chromePlusScreen(win fyne.Window, data *SettingsData) fyne.CanvasObject {
})
checkBtn := widget.NewButtonWithIcon(LoadString("CheckBtnLabel"), theme.SearchIcon(), func() {
githubReleaseMap, versionList = getChromePlusInfo(getString(data.ghProxy))
if githubReleaseMap != nil {
if githubReleaseMap != nil && len(versionList) > 0 {
versionSelect.SetOptions(versionList)
versionSelect.SetSelected(versionList[0])
setPlusVer(data, versionList[0], githubReleaseMap)
Expand Down Expand Up @@ -143,7 +143,7 @@ func getChromePlusInfo(ghProxy string) (map[string]GithubRelease, []string) {
var githubReleases []GithubRelease
jsoniter.UnmarshalFromString(string(data), &githubReleases)
if err != nil {
log.Fatal(err)
fmt.Println(err)
}
result := make(map[string]GithubRelease)
versionList := make([]string, 0)
Expand Down
2 changes: 1 addition & 1 deletion data.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func createSettings() *SettingsData {
plusProcessStatus := binding.NewBool()
plusProcessStatus.Set(false)
ghProxy := binding.NewString()
ghProxy.Set("https://ghps.cc/")
ghProxy.Set("")
return &SettingsData{
installPath: installPath,
oldVer: oldVer,
Expand Down

0 comments on commit 2e13b70

Please sign in to comment.