fix(web): hide unsupported plugin manager

Fixes #567
This commit is contained in:
Hakan Seven committed 2026-07-29 16:17:17 +03:00
1 parent 6686141d3b
commit 2424eeb74d
10 files changed
+56 -22

No files matched your search

+3 -3
View File
@@ -2299,12 +2299,12 @@ pub(super) fn start_page_view<'a>(
)
.into(),
outline_btn("Options", Message::OptionsOpen).into(),
outline_btn("Plugins", Message::PluginManagerOpen).into(),
];
// The web build is already in the browser, so only the desktop offers a
// link to the web version.
// External plugins are native dynamic libraries and the web build is
// already in the browser, so both actions are desktop-only.
#[cfg(not(target_arch = "wasm32"))]
{
secondary_items.push(outline_btn("Plugins", Message::PluginManagerOpen).into());
// Filled with the active theme's primary colour.
secondary_items.push(
button(text("OCS Web").size(14))