mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Custom G-code validation - Do not veto setting tab switch when invalid g-code is found
This commit is contained in:
		
							parent
							
								
									28b92215c3
								
							
						
					
					
						commit
						91ffd8d501
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -549,8 +549,10 @@ void MainFrame::init_tabpanel()
 | 
			
		|||
        wxWindow* panel = m_tabpanel->GetCurrentPage();
 | 
			
		||||
        if (panel != nullptr) {
 | 
			
		||||
            Tab* tab = dynamic_cast<Tab*>(panel);
 | 
			
		||||
            if (tab != nullptr && !tab->validate_custom_gcodes())
 | 
			
		||||
                evt.Veto();
 | 
			
		||||
            if (tab != nullptr)
 | 
			
		||||
                tab->validate_custom_gcodes();
 | 
			
		||||
//            if (tab != nullptr && !tab->validate_custom_gcodes())
 | 
			
		||||
//                evt.Veto();
 | 
			
		||||
        }
 | 
			
		||||
        });
 | 
			
		||||
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue