parent
6686141d3b
commit
2424eeb74d
10 changed files with 56 additions and 22 deletions
|
|
@ -236,8 +236,6 @@ pub fn start_allowed(cmd: &str) -> bool {
|
|||
| "REPORT"
|
||||
| "CHANGELOG"
|
||||
| "ABOUT"
|
||||
| "PLUGINS"
|
||||
| "PLUGINMANAGER"
|
||||
| "DONATE"
|
||||
| "WEBVERSION"
|
||||
| "HELP"
|
||||
|
|
@ -247,6 +245,8 @@ pub fn start_allowed(cmd: &str) -> bool {
|
|||
| "CUILOAD"
|
||||
| "CUIIMPORT"
|
||||
)
|
||||
|| (!cfg!(target_arch = "wasm32")
|
||||
&& matches!(cmd, "PLUGINS" | "PLUGINMANAGER"))
|
||||
}
|
||||
|
||||
// ── Autocomplete registry — one-shot commands ──────────────────────────────
|
||||
|
|
|
|||
|
|
@ -212,10 +212,17 @@ impl OpenCADStudio {
|
|||
return Some(Task::done(Message::AboutOpen));
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
"PLUGINS" | "PLUGINMANAGER" => {
|
||||
return Some(Task::done(Message::PluginManagerOpen));
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
"PLUGINS" | "PLUGINMANAGER" => {
|
||||
self.command_line
|
||||
.push_info("External plugins are available in the desktop app.");
|
||||
}
|
||||
|
||||
"CHANGELOG" => {
|
||||
crate::sys::open_url("https://github.com/HakanSeven12/OpenCADStudio/releases");
|
||||
self.command_line.push_info("Opening release notes...");
|
||||
|
|
|
|||
Loading…
Reference in a new issue