From f4112428433f2ba0ce8b2cdff124cd2d1e21ab2b Mon Sep 17 00:00:00 2001 From: HassanKhan Date: Sat, 28 Nov 2026 11:29:57 +0500 Subject: [PATCH] Object Mosaic: track OK's and Use Ratio's away warnings apart A later away warning from Use Ratio no longer replaces OK's, so both go once the dialog is back on its image. --- crates/ui-egui/src/dialogs/object_mosaic.rs | 50 +++++++++++++++++---- 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/crates/ui-egui/src/dialogs/object_mosaic.rs b/crates/ui-egui/src/dialogs/object_mosaic.rs index 43d43d4c93..9bb66b6696 100644 --- a/crates/ui-egui/src/dialogs/object_mosaic.rs +++ b/crates/ui-egui/src/dialogs/object_mosaic.rs @@ -94,6 +94,15 @@ pub struct Mosaic { delete_raster: bool, } +/// The warnings the dialog gave for being away from its image, one for each place it shows one. +#[derive(Default)] +struct Away { + /// OK's held refusal. + held: Option