Linux: file watchers skip reads, so idle apps stop rereading theme, settings and repos (L1.2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-11 02:28:29 -04:00
1 parent c62d548688
commit b2e13230b5
12 files changed
+211 -9

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ pub fn start(id: u64, repo: &Repo, cx: &mut Context<Tree>) -> notify::Result<Rec
let root = repo.root.display().to_string();
let mut watcher =
notify::recommended_watcher(move |event: notify::Result<notify::Event>| match event {
// Git's reads, ours included, are no change.
Ok(event) if ely_ui::watching::only_read(&event.kind) => {}
Ok(_) => {
let _ = sender.unbounded_send(());
}