From ee7dc2f310558f3c06ef58a0e23856edf4299de0 Mon Sep 17 00:00:00 2001 From: Liam Warfield Date: Sun, 29 Mar 2026 10:05:49 -0600 Subject: [PATCH] Remove right click menu in release builds. This makes it so that release builds don't let the right click menu popup on release builds. This is still allowed on debug builds so that things like "Inspect Element" are easy to use there. --- gui/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/src/main.rs b/gui/src/main.rs index 675a1ca..58ce7cf 100644 --- a/gui/src/main.rs +++ b/gui/src/main.rs @@ -6,8 +6,10 @@ pub fn main() { dioxus::LaunchBuilder::new() .with_cfg(desktop! { dioxus::desktop::Config::new() + // Reduce white flash on startup by setting background color and hiding main element .with_background_color((0, 0, 0, 255)) .with_custom_head("".into()) + .with_disable_context_menu(cfg!(not(debug_assertions))) .with_window( dioxus::desktop::WindowBuilder::new() .with_title("Mumble Web 2")