Remove right click menu in release builds.
Build Mumble Web 2 / windows_build (push) Successful in 3m21s
Build Mumble Web 2 / macos_build (push) Successful in 3m26s
Build Mumble Web 2 / linux_build (push) Successful in 3m36s
Build Mumble Web 2 / android_build (push) Successful in 8m9s

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.
This commit is contained in:
2026-03-29 10:05:49 -06:00
parent d12b9b891b
commit ee7dc2f310
+2
View File
@@ -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("<style>html, body { background: black; } #main { visibility: hidden; }</style>".into())
.with_disable_context_menu(cfg!(not(debug_assertions)))
.with_window(
dioxus::desktop::WindowBuilder::new()
.with_title("Mumble Web 2")