A copy whose failed write emptied a readable clipboard that held text stays pasteable into type, as the sheet keeps it

This commit is contained in:
bflatastic
2026-11-23 04:04:21 +07:00
parent 3090c995be
commit 96a3eaa482
+2 -2
View File
@@ -304,8 +304,8 @@ impl VectorcraftApp {
}
};
// A clipboard with no text can't show a later copy of a picture, or tell an empty clipboard
// from one that couldn't be read.
let trackable = held.is_some();
// from one that couldn't be read: unless it held text the write emptied, and it reads.
let trackable = held.is_some() || (before_write.is_some() && cb.read(&[TEXT]).is_ok());
self.clipboard_publishing.unwritten = text.filter(|_| current && left_by_write && trackable).map(|text| (held, text));
Err(e.to_string())
}