From 21b417fe3c12e5e995a7b394d36b4bbceddcbd3f Mon Sep 17 00:00:00 2001 From: Jason Baldwin <33934381+bitshiftza@users.noreply.github.com> Date: Tue, 13 Oct 2026 07:04:13 +0200 Subject: [PATCH] LRC-SS-PLAYBACK: the toast also goes to the top while a dialog is open, clear of its buttons --- crates/ui-egui/src/panels/mod.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/panels/mod.rs b/crates/ui-egui/src/panels/mod.rs index a7eff832c..cb19353e8 100644 --- a/crates/ui-egui/src/panels/mod.rs +++ b/crates/ui-egui/src/panels/mod.rs @@ -92,9 +92,12 @@ pub fn toast(app: &mut LightcraftApp, ctx: &egui::Context) { .order(egui::Order::Foreground) .movable(false) .pivot(Align2::CENTER_CENTER) - // a slideshow's playback controls (and the template buttons) sit at the bottom: the toast, - // which takes the pointer (its text can be selected), goes to the top there - .fixed_pos(pos2(canvas.center().x, if app.ui.slideshow.is_some() { canvas.top() + 60.0 } else { canvas.bottom() - 60.0 })) + // the toast takes the pointer (its text can be selected), so it must not sit on buttons: a + // slideshow's playback controls and a dialog's buttons are at the bottom, so it goes to the top there + .fixed_pos(pos2( + canvas.center().x, + if app.ui.slideshow.is_some() || app.ui.dialog.is_some() { canvas.top() + 60.0 } else { canvas.bottom() - 60.0 }, + )) .show(ctx, |ui| { ui.set_max_width(wrap); egui::Frame::NONE.fill(background).corner_radius(egui::CornerRadius::same(6)).inner_margin(egui::Margin::symmetric(20, 11)).show(