Add StorageDevice.ForceWakeup property. (#2252)

This commit is contained in:
Blacktempel
2026-03-02 19:16:01 +01:00
committed by GitHub
parent 14b6daa7d6
commit a0392ad4fc
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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()