mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[ui] fix Quick Format being disabled when no device is plugged
This commit is contained in:
		
							parent
							
								
									f1f6e4b4ea
								
							
						
					
					
						commit
						4ee90a9546
					
				
					 2 changed files with 9 additions and 7 deletions
				
			
		|  | @ -778,9 +778,11 @@ static void EnableBootOptions(BOOL enable, BOOL remove_checkboxes) | |||
| { | ||||
| 	BOOL actual_enable_bb, actual_enable = enable; | ||||
| 
 | ||||
| 	// If no device is selected, don't enable anything
 | ||||
| 	if (ComboBox_GetCurSel(hDeviceList) < 0) | ||||
| 	// If no device is selected, don't enable anything and also don't remove the checkboxes
 | ||||
| 	if (ComboBox_GetCurSel(hDeviceList) < 0) { | ||||
| 		actual_enable = FALSE; | ||||
| 		remove_checkboxes = FALSE; | ||||
| 	} | ||||
| 	// If boot selection is set to image, but no image is currently selected, don't enable anything
 | ||||
| 	if ((boot_type == BT_IMAGE) && (image_path == NULL)) | ||||
| 		actual_enable = FALSE; | ||||
|  |  | |||
							
								
								
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							|  | @ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | |||
| IDD_DIALOG DIALOGEX 12, 12, 232, 326 | ||||
| STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | ||||
| EXSTYLE WS_EX_ACCEPTFILES | ||||
| CAPTION "Rufus 3.9.1611" | ||||
| CAPTION "Rufus 3.9.1612" | ||||
| FONT 9, "Segoe UI Symbol", 400, 0, 0x0 | ||||
| BEGIN | ||||
|     LTEXT           "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP | ||||
|  | @ -394,8 +394,8 @@ END | |||
| // | ||||
| 
 | ||||
| VS_VERSION_INFO VERSIONINFO | ||||
|  FILEVERSION 3,9,1611,0 | ||||
|  PRODUCTVERSION 3,9,1611,0 | ||||
|  FILEVERSION 3,9,1612,0 | ||||
|  PRODUCTVERSION 3,9,1612,0 | ||||
|  FILEFLAGSMASK 0x3fL | ||||
| #ifdef _DEBUG | ||||
|  FILEFLAGS 0x1L | ||||
|  | @ -413,13 +413,13 @@ BEGIN | |||
|             VALUE "Comments", "https://rufus.ie" | ||||
|             VALUE "CompanyName", "Akeo Consulting" | ||||
|             VALUE "FileDescription", "Rufus" | ||||
|             VALUE "FileVersion", "3.9.1611" | ||||
|             VALUE "FileVersion", "3.9.1612" | ||||
|             VALUE "InternalName", "Rufus" | ||||
|             VALUE "LegalCopyright", "© 2011-2020 Pete Batard (GPL v3)" | ||||
|             VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" | ||||
|             VALUE "OriginalFilename", "rufus-3.9.exe" | ||||
|             VALUE "ProductName", "Rufus" | ||||
|             VALUE "ProductVersion", "3.9.1611" | ||||
|             VALUE "ProductVersion", "3.9.1612" | ||||
|         END | ||||
|     END | ||||
|     BLOCK "VarFileInfo" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue