mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX:search dialog cannot open
reason:search_line window modified by darkmode-commit Change-Id: I1a6c58362b2d1eff506b62a97d908b95dc591ff9
This commit is contained in:
		
							parent
							
								
									b65d47b544
								
							
						
					
					
						commit
						56a98390f9
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -639,10 +639,9 @@ void SearchDialog::OnDismiss() { } | |||
| void SearchDialog::Dismiss() | ||||
| { | ||||
|     auto pos = wxGetMousePosition(); | ||||
| 
 | ||||
|     if (!search_line->HasFocus() && !this->HasFocus()) { | ||||
|     auto focus_window = wxWindow::FindFocus(); | ||||
|     if (!focus_window) | ||||
|         Die(); | ||||
|     } | ||||
|     else if (!m_event_tag->GetScreenRect().Contains(pos) && !this->GetScreenRect().Contains(pos) && !m_search_item_tag->GetScreenRect().Contains(pos)) { | ||||
|         Die(); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 liz.li
						liz.li