Skip to content

Commit

Permalink
remove print_flow_ratio from profiles and hide it from process settin…
Browse files Browse the repository at this point in the history
…g. It should be only displayed for parts
  • Loading branch information
SoftFever committed Nov 16, 2023
1 parent e8ac157 commit 565732a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"gcode_label_objects": "0",
"exclude_object": "0",
"wall_generator": "classic",
"print_flow_ratio": "0.98",
"only_one_wall_top": "1",
"slow_down_layers": "1",
"small_perimeter_speed": "50%",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"gcode_label_objects": "0",
"exclude_object": "0",
"wall_generator": "classic",
"print_flow_ratio": "0.98",
"only_one_wall_top": "1",
"slow_down_layers": "1",
"small_perimeter_speed": "50%",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
"prime_tower_brim_width": "3",
"prime_tower_width": "35",
"prime_volume": "45",
"print_flow_ratio": "1",
"print_sequence": "by layer",
"print_settings_id": "0.30mm Standard @Flashforge AD5M Pro 0.6 Nozzle",
"raft_contact_distance": "0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"prime_tower_brim_width": "3",
"prime_tower_width": "35",
"prime_volume": "45",
"print_flow_ratio": "0.95",
"print_sequence": "by layer",

"raft_contact_distance": "0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"prime_tower_brim_width": "3",
"prime_tower_width": "60",
"prime_volume": "45",
"print_flow_ratio": "1",
"print_sequence": "by layer",
"print_settings_id": "",
"raft_contact_distance": "0.1",
Expand Down
9 changes: 9 additions & 0 deletions src/slic3r/GUI/ParamsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,15 @@ void ParamsPanel::set_active_tab(wxPanel* tab)
wxString title = cur_tab->type() == Preset::TYPE_FILAMENT ? _L("Filament settings") : _L("Printer settings");
dialog->SetTitle(title);
}

auto tab_print = dynamic_cast<Tab *>(m_tab_print);
if (cur_tab == m_tab_print) {
if (tab_print)
tab_print->toggle_line("print_flow_ratio", false);
} else {
if (tab_print)
tab_print->toggle_line("print_flow_ratio", false);
}
}

bool ParamsPanel::is_active_and_shown_tab(wxPanel* tab)
Expand Down

0 comments on commit 565732a

Please sign in to comment.