mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-29 19:53:44 -06:00 
			
		
		
		
	FIX: close GuideFrame on exit to fix crash on MacOS
Change-Id: Ia9c6103961ce13c3f88f898ed449a3f8f299858d
This commit is contained in:
		
							parent
							
								
									dfa475210f
								
							
						
					
					
						commit
						bb02d0f0ae
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -35,7 +35,7 @@ namespace Slic3r { namespace GUI { | |||
| json m_ProfileJson; | ||||
| 
 | ||||
| GuideFrame::GuideFrame(GUI_App *pGUI, long style) | ||||
|     : wxDialog((wxWindow *) (pGUI->mainframe), wxID_ANY, "BambuStudio", wxDefaultPosition, wxDefaultSize, style), | ||||
|     : DPIDialog((wxWindow *) (pGUI->mainframe), wxID_ANY, "BambuStudio", wxDefaultPosition, wxDefaultSize, style), | ||||
| 	m_appconfig_new() | ||||
| { | ||||
|     // INI
 | ||||
|  |  | |||
|  | @ -34,7 +34,7 @@ | |||
| 
 | ||||
| namespace Slic3r { namespace GUI { | ||||
| 
 | ||||
| class GuideFrame : public wxDialog | ||||
| class GuideFrame : public DPIDialog | ||||
| { | ||||
| public: | ||||
|     GuideFrame(GUI_App *pGUI, long style = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU); | ||||
|  | @ -92,6 +92,8 @@ public: | |||
|     int InstallPlugin(); | ||||
|     int ShowPluginStatus(int status, int percent, bool &cancel); | ||||
| 
 | ||||
|     void on_dpi_changed(const wxRect &suggested_rect) {} | ||||
|      | ||||
| private: | ||||
|     GUI_App *m_MainPtr; | ||||
|     AppConfig m_appconfig_new; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 chunmao.guo
						chunmao.guo