Fix for #8380 - Disable/Remove "Sliced Object "*" looks like a logo or a sign

Preferences: Added option "Allow automatically color change"
This commit is contained in:
YuSanka 2022-08-30 14:32:03 +02:00
parent 68b5567267
commit 9bb74d92c7
3 changed files with 10 additions and 1 deletions

View File

@ -184,6 +184,9 @@ void AppConfig::set_defaults()
if (get("show_hints").empty())
set("show_hints", "1");
if (get("allow_auto_color_change").empty())
set("allow_auto_color_change", "1");
if (get("allow_ip_resolve").empty())
set("allow_ip_resolve", "1");

View File

@ -706,7 +706,8 @@ void Preview::update_layers_slider(const std::vector<double>& layers_z, bool kee
}
// Suggest the auto color change, if model looks like sign
if (m_layers_slider->IsNewPrint())
if (wxGetApp().app_config->get("allow_auto_color_change") == "1" &&
m_layers_slider->IsNewPrint())
{
const Print& print = wxGetApp().plater()->fff_print();

View File

@ -459,6 +459,11 @@ void PreferencesDialog::build()
L("If enabled, shows non-manifold edges."),
app_config->get("non_manifold_edges") == "1");
append_bool_option(m_optgroup_gui, "allow_auto_color_change",
L("Allow automatically color change"),
L("If enabled, related notification will be shown, when sliced object looks like a logo or a sign."),
app_config->get("allow_auto_color_change") == "1");
#ifdef _MSW_DARK_MODE
append_bool_option(m_optgroup_gui, "tabs_as_menu",
L("Set settings tabs as menu items (experimental)"),