forked from 1b-agent/opencadstudio-upstream
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:
1 parent
70f65270aa
commit
6fdd090176
2 files changed
+12
-17
No files matched your search
+10
-6
@@ -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 ─────────────────────────────────────
|
||||
|
||||
Reference in new issue
Block a user