From 2c7d06c980ea72e624d4a817b95d4b6fec513586 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 17 Nov 2025 17:58:08 -0500 Subject: [PATCH] chore: add method for checking if a dialog tracks a surface needed to call viewor update on the dialog popups --- src/dialog.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dialog.rs b/src/dialog.rs index 053d8d5..02a6bf7 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -388,6 +388,10 @@ impl Dialog { pub const fn window_id(&self) -> window::Id { self.cosmic.app.flags.window_id } + + pub fn contains_surface(&self, id: &window::Id) -> bool { + self.cosmic.surface_views.contains_key(id) + } } #[derive(Clone, Debug)]