mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_layout
This commit is contained in:
		
						commit
						af4fb2d174
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -1402,7 +1402,9 @@ void GUI_App::window_pos_restore(wxTopLevelWindow* window, const std::string &na | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     window->SetSize(metrics->get_rect()); | ||||
|     const wxRect& rect = metrics->get_rect(); | ||||
|     window->SetPosition(rect.GetPosition()); | ||||
|     window->SetSize(rect.GetSize()); | ||||
|     window->Maximize(metrics->get_maximized()); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -341,7 +341,7 @@ public: | |||
|     static WindowMetrics from_window(wxTopLevelWindow *window); | ||||
|     static boost::optional<WindowMetrics> deserialize(const std::string &str); | ||||
| 
 | ||||
|     wxRect get_rect() const { return rect; } | ||||
|     const wxRect& get_rect() const { return rect; } | ||||
|     bool get_maximized() const { return maximized; } | ||||
| 
 | ||||
|     void sanitize_for_display(const wxRect &screen_rect); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966