mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed a regression that bed type was not remembered and switched when switching bed types
This commit is contained in:
		
							parent
							
								
									132e531fb8
								
							
						
					
					
						commit
						e001b66192
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -1057,6 +1057,13 @@ void Sidebar::update_all_preset_comboboxes() | |||
|             m_bed_type_list->SelectAndNotify((int)bed_type - 1); | ||||
|         } | ||||
|         m_bed_type_list->Enable(); | ||||
|         auto str_bed_type = wxGetApp().app_config->get_printer_setting(wxGetApp().preset_bundle->printers.get_selected_preset_name(), "curr_bed_type"); | ||||
|         if(!str_bed_type.empty()){ | ||||
|             int bed_type_value = atoi(str_bed_type.c_str()); | ||||
|             if(bed_type_value == 0) | ||||
|                 bed_type_value = 1; | ||||
|             m_bed_type_list->SelectAndNotify(bed_type_value - 1); | ||||
|         } | ||||
|     } else { | ||||
|         connection_btn->Show(); | ||||
|         ams_btn->Hide(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 SoftFever
						SoftFever