mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Allow MediaScan to be aborted.
This commit is contained in:
@@ -10,6 +10,7 @@ namespace DiscImageChef.Core.Devices.Scanning
|
||||
readonly string devicePath;
|
||||
readonly string ibgLogPath;
|
||||
readonly string mhddLogPath;
|
||||
bool aborted;
|
||||
|
||||
/// <param name="mhddLogPath">Path to a MHDD log file</param>
|
||||
/// <param name="ibgLogPath">Path to a IMGBurn log file</param>
|
||||
@@ -21,6 +22,7 @@ namespace DiscImageChef.Core.Devices.Scanning
|
||||
this.ibgLogPath = ibgLogPath;
|
||||
this.devicePath = devicePath;
|
||||
this.dev = dev;
|
||||
aborted = false;
|
||||
}
|
||||
|
||||
public ScanResults Scan()
|
||||
@@ -37,6 +39,11 @@ namespace DiscImageChef.Core.Devices.Scanning
|
||||
}
|
||||
}
|
||||
|
||||
public void Abort()
|
||||
{
|
||||
aborted = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event raised when the progress bar is not longer needed
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user