mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
Address CodeRabbit review feedback: modal priority, early cancel, doc metadata
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user