forked from trav/lintunes
show_conflict_summary() built a fresh ConflictSummaryDialog every time and only reassigned self._conflict_dialog — the old dialog was still a child of the window, so it stayed on screen. check_for_external_changes() runs resolve_conflicts() on every Syncthing watch tick, so that was one window per merge, forever. Fifteen had piled up on trav's desktop. The dialog is now a session-long log: add_event() folds each merge in as its own timestamped entry, newest first, and the restore button names the merge it would undo. MainWindow reuses the open dialog and clears its reference on finished, so closing it lets the next merge open a fresh one instead of touching a deleted C++ object. Claude-Session: https://claude.ai/code/session_01M8Mzze7shr5pZoEgKQU5NW