v0.7.3 - Fix re-check unique apres action depot
Changements : - Ajout barre de progression Unicode dans la colonne Progression - Capture temps reel de la sortie git (clone/pull --progress) - Timeouts augmentes (2h clone/pull, 5min fetch) pour gros depots 10+ Go - Apres mise a jour d'un depot, seul ce depot est re-verifie (plus de re-fetch global) - Config self-update : ajout branch = feature/go-rewrite Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Binary file not shown.
@@ -5,6 +5,7 @@
|
||||
[self-update]
|
||||
url = http://192.168.1.235:3125/zogzog/Lanceur-geco
|
||||
exe_name = GitUpdateChecker.exe
|
||||
branch = feature/go-rewrite
|
||||
|
||||
[repo:Scripts]
|
||||
url = http://192.168.1.235:3125/zogzog/Scripts
|
||||
|
||||
20
gui.go
20
gui.go
@@ -433,6 +433,23 @@ func logLineForResult(r RepoResult) string {
|
||||
return msg
|
||||
}
|
||||
|
||||
// recheckOne re-vérifie un seul dépôt sans toucher aux autres.
|
||||
func (a *App) recheckOne(idx int) {
|
||||
if idx < 0 || idx >= len(a.reposConfig) {
|
||||
return
|
||||
}
|
||||
cfg := a.reposConfig[idx]
|
||||
a.model.setResult(idx, RepoResult{Name: cfg.Name, Pending: true})
|
||||
go func() {
|
||||
res := checkRepo(cfg)
|
||||
a.mw.Synchronize(func() {
|
||||
a.model.setResult(idx, res)
|
||||
a.btnUpdateAll.SetEnabled(a.model.hasUpdates())
|
||||
a.onSelectionChanged()
|
||||
})
|
||||
}()
|
||||
}
|
||||
|
||||
// ── Progression ───────────────────────────────────────────────────────────────
|
||||
|
||||
// makeProgressCB crée un callback de progression pour la ligne row du tableau.
|
||||
@@ -512,7 +529,8 @@ func (a *App) doAction() {
|
||||
a.appendLog(fmt.Sprintf("[%s] Mise à jour OK", res.Name))
|
||||
logInfo(fmt.Sprintf("[%s] Mise à jour OK", res.Name))
|
||||
}
|
||||
a.startCheck()
|
||||
// Re-vérifier uniquement ce dépôt, pas tous
|
||||
a.recheckOne(idx)
|
||||
})
|
||||
}()
|
||||
}
|
||||
|
||||
2
main.go
2
main.go
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/lxn/walk"
|
||||
)
|
||||
|
||||
const VERSION = "0.7.2"
|
||||
const VERSION = "0.7.3"
|
||||
|
||||
func exeDir() string {
|
||||
exe, err := os.Executable()
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.7.2
|
||||
0.7.3
|
||||
|
||||
Reference in New Issue
Block a user