Hide the Design tab behind an experimental CAD preference

The tab is now gated on a new enable_cad_feature app-config key, off by
default, exposed in Preferences under General > Features. When off, the
page is never created, so the Design-only camera option is hidden too.
Takes effect on restart, like the other feature toggles.
This commit is contained in:
SoftFever
2026-08-29 01:56:48 +08:00
parent 13d5eac891
commit 0fc62d03b9
4 changed files with 39 additions and 13 deletions
+3
View File
@@ -349,6 +349,9 @@ public:
int OnExit() override;
bool initialized() const { return m_initialized; }
inline bool is_enable_multi_machine() { return this->app_config&& this->app_config->get("enable_multi_machine") == "true"; }
#ifdef SLIC3R_CAD
inline bool is_enable_cad_feature() { return this->app_config && this->app_config->get_bool("enable_cad_feature"); }
#endif
std::map<std::string, bool> test_url_state;