Changeset 21 for trunk/Form/UFormMain.pas
- Timestamp:
- Apr 2, 2016, 11:12:47 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 lib 3 3 CoolDisk.lps 4 CoolDisk.exe
-
- Property svn:ignore
-
trunk/Form/UFormMain.pas
r20 r21 242 242 DriveInfo.Assign(TDriveInfo(ComboBoxDrive.Items.Objects[ComboBoxDrive.ItemIndex])); 243 243 Modified := True; 244 Core.Project.ScanProfile.SectorCount := DriveInfo.SectorCount; 245 Core.Project.ScanProfile.SectorStart := 0; 246 Core.Project.ScanProfile.SectorEnd := Core.Project.ScanProfile.SectorCount - 1; 244 Core.Project.ScanProfile.LoadFromDriveInfo(DriveInfo); 247 245 UpdateInterface; 248 246 Redraw; … … 307 305 ComboBoxDrive.ItemIndex := Core.DriveList.IndexOf(Core.DriveList.FindByModel(Core.Project.DriveInfo.Model)); 308 306 if (ComboBoxDrive.ItemIndex = -1) and (ComboBoxDrive.Items.Count > 0) then ComboBoxDrive.ItemIndex := 0; 309 ComboBoxDriveChange(Self); 307 if ComboBoxDrive.ItemIndex <> -1 then 308 Core.Project.DriveInfo.Assign(TDriveInfo(ComboBoxDrive.Items.Objects[ComboBoxDrive.ItemIndex])); 309 Core.Project.ScanProfile.LoadFromDriveInfo(Core.Project.DriveInfo); 310 310 311 311 Redraw;
Note:
See TracChangeset
for help on using the changeset viewer.