Address CodeRabbit review feedback: modal priority, early cancel, doc metadata

This commit is contained in:
ruchirguitar
2026-11-19 12:09:42 +05:30
parent fc5d16f29c
commit b9e1bf0013
5 changed files with 10 additions and 8 deletions
+1
View File
@@ -695,6 +695,7 @@ impl PlaceJob {
/// the renderers' image store for the first frame that draws them
/// ([`super::links::readable_and_kept`]).
pub fn read(self) -> Result<PlaceRead> {
crate::cancel::check()?;
let (mut loaded, slices) = load_sliced(&self.params, PLACE, self.target, true)?;
let linked = loaded.link.is_some() && bool_or(&self.params, "link", true);
match &mut loaded.art {
+1 -1
View File
@@ -209,7 +209,7 @@ pub fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
seen.1
});
let exporting = app.background.jobs.iter().any(|j| j.progress.is_some() && !j.hidden && !j.cancelled());
let other = exporting || crate::plugin_runs::any_shown(app) || crate::trace_runs::any_shown(app) || crate::placing::any_shown(app);
let other = exporting || crate::plugin_runs::any_shown(app) || crate::trace_runs::any_shown(app);
if now - since < DELAY || app.ui.dialog.is_some() || other {
return;
}
+2 -2
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4 -3
View File
File diff suppressed because one or more lines are too long