diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-03 10:53:39 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-03 10:53:39 +0200 |
| commit | 7ca865ee29ca73373349e3a82f783877e4d51ae8 (patch) | |
| tree | a449b840bed27a071e1003b75cb070b92b976f05 /ui/git_view.py | |
| parent | 1f7edea0ec0be3ec0e464c2829e4aec0886e28d3 (diff) | |
| download | publisher-7ca865ee29ca73373349e3a82f783877e4d51ae8.tar.gz publisher-7ca865ee29ca73373349e3a82f783877e4d51ae8.zip | |
fix: stop double stopped emit, restore race, worker leak, encapsulation, git view init
Diffstat (limited to 'ui/git_view.py')
| -rw-r--r-- | ui/git_view.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/git_view.py b/ui/git_view.py index 2c759e8..b5f7371 100644 --- a/ui/git_view.py +++ b/ui/git_view.py @@ -16,6 +16,7 @@ class GitView(QWidget): self._repo_path = repo_path self._worker: GitWorker | None = None self._build_ui() + self.load_status() def _build_ui(self): layout = QVBoxLayout(self) @@ -130,5 +131,5 @@ class GitView(QWidget): return commit_hash, rel_path = item.data(256) worker = GitWorker.restore_article(self._repo_path, commit_hash, rel_path, self) + worker.finished.connect(lambda ok: self.load_status() if ok else None) self._run_worker(worker) - self.load_status() |
