fix: do not generate thumbnail if file is being written

This commit is contained in:
Michael Aaron Murphy 2026-04-10 06:08:21 +02:00
parent 0bd20e57e7
commit 15e40461e5
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
4 changed files with 67 additions and 0 deletions

View file

@ -6771,6 +6771,10 @@ impl Tab {
stream::channel(
1,
move |mut output: futures::channel::mpsc::Sender<_>| async move {
while crate::operation::is_actively_writing_to(&path) {
crate::operation::actively_writing_tick().await;
}
let message = {
let path = path.clone();