From 0503b60f308a9bdfa577495af3f70096c1e5fa70 Mon Sep 17 00:00:00 2001 From: sunsets <845944018@qq.com> Date: Fri, 28 Jul 2023 15:09:44 +0800 Subject: [PATCH] change --- resources/profiles/QIDITechnology.ini | 6 +++--- src/slic3r/GUI/PresetComboBoxes.cpp | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/resources/profiles/QIDITechnology.ini b/resources/profiles/QIDITechnology.ini index 339683e..8d9a9ea 100644 --- a/resources/profiles/QIDITechnology.ini +++ b/resources/profiles/QIDITechnology.ini @@ -338,7 +338,7 @@ inherits = *common* advance_pressure = 0.021 bed_temperature = 100 enable_auxiliary_fan = 0 -enable_volume_fan = 0 +enable_volume_fan = 100 extrusion_multiplier = 0.95 filament_colour = #FFC800 filament_density = 1.02 @@ -470,7 +470,7 @@ inherits = *common* advance_pressure = 0.021 bed_temperature = 100 enable_auxiliary_fan = 0 -enable_volume_fan = 0 +enable_volume_fan = 100 extrusion_multiplier = 0.95 filament_colour = #FFFF00 filament_density = 1.04 @@ -747,7 +747,7 @@ retract_restart_extra_toolchange = 0 retract_speed = 30 silent_mode = 0 single_extruder_multi_material = 0 -start_gcode = G28\nM141 S0\nG0 Z50 F600\nM190 S[first_layer_bed_temperature]\nG28 Z\nG29 ; mesh bed leveling ,comment this code to close it\nG0 X0 Y0 Z50 F6000\nM109 S[first_layer_temperature]\nM83\nG0 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0)} Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0)} Z5 F6000\nG0 Z0.2 F600\nG1 E3 F1800\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 80))} E{85 * 0.04} F3000\nG1 Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0) + 2} E{2 * 0.04} F3000\nG1 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0)} E{85 * 0.04} F3000\nG1 Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0) + 85} E{83 * 0.04} F3000\nG1 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0) + 2} E{2 * 0.04} F3000\nG1 Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0) + 3} E{82 * 0.04} F3000\nG0 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0) + 12} F3000 +start_gcode = G28\nM141 S0\nG0 Z50 F600\nM190 S[first_layer_bed_temperature]\nG28 Z\nG29 ; mesh bed leveling ,comment this code to close it\nG0 X0 Y0 Z50 F6000\nM109 S[first_layer_temperature]\nM83\nG0 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0)} Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0)} Z5 F6000\nG0 Z0.2 F600\nG1 E3 F1800\nG1 X{(min(print_bed_max[0], first_layer_print_min[0] + 80))} E{85 * 0.04} F3000\nG1 Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0) + 2} E{2 * 0.04} F3000\nG1 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0)} E{85 * 0.04} F3000\nG1 Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0) + 85} E{83 * 0.04} F3000\nG1 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0) + 2} E{2 * 0.04} F3000\nG1 Y{max((min(print_bed_max[1], first_layer_print_min[1] + 80) - 85),0) + 3} E{82 * 0.04} F3000\nG1 X{max((min(print_bed_max[0], first_layer_print_min[0] + 80) - 85),0) + 12} E{-10 * 0.04} F3000\nG1 E{10 * 0.04} F3000 template_custom_gcode = thumbnails = thumbnails_format = QIDI diff --git a/src/slic3r/GUI/PresetComboBoxes.cpp b/src/slic3r/GUI/PresetComboBoxes.cpp index b6b70bc..72337d2 100644 --- a/src/slic3r/GUI/PresetComboBoxes.cpp +++ b/src/slic3r/GUI/PresetComboBoxes.cpp @@ -377,9 +377,12 @@ void PresetComboBox::add_physical_printer() void PresetComboBox::open_physical_printer_url() { - const PhysicalPrinter& pp = m_preset_bundle->physical_printers.get_selected_printer(); - std::string host = pp.config.opt_string("print_host"); + const PhysicalPrinter &pp = m_preset_bundle->physical_printers.get_selected_printer(); + std::string host = pp.config.opt_string("print_host"); assert(!host.empty()); + // B31 + if (host.find(":10088") == -1) + host = host + ":10088"; wxGetApp().open_browser_with_warning_dialog(host); }