mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-26 18:21:18 -06:00 
			
		
		
		
	Fixed loading translation of hint notification text and reloading this texts in other langs.
This commit is contained in:
		
							parent
							
								
									e0b96e5535
								
							
						
					
					
						commit
						f03f8f52d7
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -294,6 +294,10 @@ void HintDatabase::uninit() | |||
| 		write_used_binary(m_used_ids); | ||||
| 	} | ||||
| 	m_initialized = false; | ||||
| 	m_loaded_hints.clear(); | ||||
| 	m_sorted_hints = false; | ||||
| 	m_used_ids.clear(); | ||||
| 	 m_used_ids_loaded = false; | ||||
| } | ||||
| void HintDatabase::init() | ||||
| { | ||||
|  | @ -336,7 +340,8 @@ void HintDatabase::load_hints_from_file(const boost::filesystem::path& path) | |||
| 			size_t      weight = 1; | ||||
| 			bool		was_displayed = is_used(id_string); | ||||
| 			//unescape text1
 | ||||
| 			unescape_string_cstyle(_utf8(dict["text"]), fulltext); | ||||
| 			unescape_string_cstyle(dict["text"], fulltext); | ||||
| 			fulltext = _utf8(fulltext); | ||||
| 			// replace <b> and </b> for imgui markers
 | ||||
| 			std::string marker_s(1, ImGui::ColorMarkerStart); | ||||
| 			std::string marker_e(1, ImGui::ColorMarkerEnd); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Kocik
						David Kocik