mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
app: keep inspection results tied to the latest selection (#251)
InspectionModel.inspect started a detached read per call and published status, report and busy whenever any of them finished. A slow first inspection that completed after a fast second one replaced the newer report and status, and could clear busy while the newer read was still running. - Each inspect call takes a request number; a completion is applied only while it is still the latest, so stale success and stale failure are discarded. Picker, drag and drop and Finder Open With all go through inspect and share this. - A new selection clears the previous report, and a failed inspection of the latest file is shown in red above its report. - The read is unchanged: size checked before reading, balanced security-scoped access, nothing executed. The reader is injectable only for the smoke check. - --smoke-inspection-order drives the model with an injected slow and fast reader: slow then fast with either outcome, and busy held for the newer request while an older read finishes. scripts/build-app.sh runs it after --smoke. All four checks fail without the change. Ported from XenoraOSS/Xenora#423. Signed-off-by: maridogolpeador <354308468+maridogolpeador@users.noreply.github.com>
This commit is contained in:
1 parent
67b8cff9df
commit
1ea898b4bf
3 files changed
+74
-1
No files matched your search
@@ -72,4 +72,5 @@ for dependency in $dependencies; do
|
||||
esac
|
||||
done
|
||||
"$binary" --smoke
|
||||
"$binary" --smoke-inspection-order
|
||||
echo "build-app: built $bundle"
|
||||
Reference in new issue
Block a user