diff --git a/GitUpdateChecker.exe b/GitUpdateChecker.exe index e4b061b..d5a5b7d 100644 Binary files a/GitUpdateChecker.exe and b/GitUpdateChecker.exe differ diff --git a/config.ini b/config.ini index aebbd06..2eec154 100644 --- a/config.ini +++ b/config.ini @@ -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 diff --git a/gui.go b/gui.go index a2ee10b..c2117a2 100644 --- a/gui.go +++ b/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) }) }() } diff --git a/main.go b/main.go index 5dd9b87..52ac29e 100644 --- a/main.go +++ b/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() diff --git a/version.txt b/version.txt index 7486fdb..f38fc53 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.7.2 +0.7.3