Add StorageDevice.ForceWakeup property. (#2252)
This commit is contained in:
@@ -295,7 +295,7 @@ public sealed partial class MainForm : Form
|
||||
.ToList()
|
||||
.ForEach(sd =>
|
||||
{
|
||||
sd.Storage.ForceWakeup = _forceDriveWakeup.Value;
|
||||
sd.ForceWakeup = _forceDriveWakeup.Value;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -61,6 +61,13 @@ public sealed class StorageDevice : Hardware, ISmart
|
||||
|
||||
public IReadOnlyList<SmartAttribute> Attributes => _attributes;
|
||||
|
||||
///<inheritdoc cref="DiskInfoToolkit.Storage.ForceWakeup"/>
|
||||
public bool ForceWakeup
|
||||
{
|
||||
get { return _storage.ForceWakeup; }
|
||||
set { _storage.ForceWakeup = value; }
|
||||
}
|
||||
|
||||
public static TimeSpan ThrottleInterval { get; set; }
|
||||
|
||||
public override void Update()
|
||||
|
||||
Reference in New Issue
Block a user