mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	FIX:fixed some issues with unsavechangeddialog
Change-Id: I5addcc4c1ddaa6a98c31a0e57028de72a606a493
This commit is contained in:
		
							parent
							
								
									752e00694a
								
							
						
					
					
						commit
						a8ad6e9f69
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -2929,7 +2929,7 @@ void MainFrame::open_recent_project(size_t file_id, wxString const & filename) | |||
|     } | ||||
|     else | ||||
|     { | ||||
|         MessageDialog msg(this, _L("The project is no longer available."), _L("Error"), wxYES | wxYES_DEFAULT); | ||||
|         MessageDialog msg(this, _L("The project is no longer available."), _L("Error"), wxOK | wxYES_DEFAULT); | ||||
|         if (msg.ShowModal() == wxID_YES) | ||||
|         { | ||||
|             m_recent_projects.RemoveFileFromHistory(file_id); | ||||
|  |  | |||
|  | @ -772,7 +772,7 @@ std::vector<std::string> DiffViewCtrl::selected_options() | |||
| 
 | ||||
| static std::string none{"none"}; | ||||
| #define UNSAVE_CHANGE_DIALOG_SCROLL_WINDOW_SIZE wxSize(FromDIP(490), FromDIP(374)) | ||||
| #define UNSAVE_CHANGE_DIALOG_ACTION_LINE_SIZE wxSize(FromDIP(490), FromDIP(40)) | ||||
| #define UNSAVE_CHANGE_DIALOG_ACTION_LINE_SIZE wxSize(FromDIP(490), FromDIP(60)) | ||||
| #define UNSAVE_CHANGE_DIALOG_FIRST_VALUE_WIDTH FromDIP(190) | ||||
| #define UNSAVE_CHANGE_DIALOG_VALUE_WIDTH FromDIP(150) | ||||
| #define UNSAVE_CHANGE_DIALOG_ITEM_HEIGHT FromDIP(24) | ||||
|  | @ -952,7 +952,8 @@ void UnsavedChangesDialog::build(Preset::Type type, PresetCollection *dependent_ | |||
|             (*btn)->SetTextColor(wxColour(107, 107, 107)); | ||||
|         } | ||||
| 
 | ||||
|         (*btn)->SetMinSize(UNSAVE_CHANGE_DIALOG_BUTTON_SIZE); | ||||
|         //(*btn)->SetMinSize(UNSAVE_CHANGE_DIALOG_BUTTON_SIZE);
 | ||||
|         (*btn)->SetMinSize(wxSize(-1,-1)); | ||||
|         (*btn)->SetCornerRadius(FromDIP(12)); | ||||
| 
 | ||||
|         (*btn)->Bind(wxEVT_BUTTON, [this, close_act, dependent_presets](wxEvent &) { | ||||
|  | @ -1377,7 +1378,7 @@ void UnsavedChangesDialog::update(Preset::Type type, PresetCollection* dependent | |||
|     } | ||||
| 
 | ||||
|     wxString action_msg; | ||||
|     action_msg = format_wxstr(_L("You have changed some preset settings. \nWould you like to keep these changed settings after switching preset?")); | ||||
|     action_msg = format_wxstr(_L("You have changed some preset settings. \nWould you like to keep these changed settings (new value) after switching preset?")); | ||||
|     m_action_line->SetLabel(action_msg); | ||||
| 
 | ||||
|     update_tree(type, presets); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tao wang
						tao wang