fix(ui): restore start actions and web copy
Route About info through browser clipboard on WASM. Let Start-page links reach the existing command allowlist. Refs #707 Refs #738
This commit is contained in:
parent
70f65270aa
commit
6fdd090176
2 changed files with 12 additions and 17 deletions
|
|
@ -1267,11 +1267,7 @@ impl OpenCADStudio {
|
|||
}
|
||||
|
||||
Message::RibbonToolClick { tool_id, event } => {
|
||||
if self.tabs[self.active_tab].is_start {
|
||||
Task::none()
|
||||
} else {
|
||||
self.on_ribbon_tool_click(tool_id, event)
|
||||
}
|
||||
self.on_ribbon_tool_click(tool_id, event)
|
||||
}
|
||||
Message::PluginFileDialogResult { command, path } => {
|
||||
if let Some(path) = path {
|
||||
|
|
@ -5722,7 +5718,15 @@ impl OpenCADStudio {
|
|||
crate::ui::window::about::platform_name(),
|
||||
crate::ui::window::about::architecture_name(),
|
||||
);
|
||||
iced::clipboard::write(info).discard()
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
{
|
||||
crate::sys::write_clipboard_text(&info);
|
||||
Task::none()
|
||||
}
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
{
|
||||
iced::clipboard::write(info).discard()
|
||||
}
|
||||
}
|
||||
|
||||
// ── Plugin Manager window ─────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Reference in a new issue