diff --git a/AboutWindow.xaml.cs b/AboutWindow.xaml.cs
index a18f242587..52bdf9a54e 100644
--- a/AboutWindow.xaml.cs
+++ b/AboutWindow.xaml.cs
@@ -14,7 +14,7 @@ public AboutWindow()
{
InitializeComponent();
- versionLbl.Content += Assembly.GetEntryAssembly().GetName().Version.ToString(2);
+ versionLbl.Content += Assembly.GetEntryAssembly().GetName().Version.ToString(3);
}
private void hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
diff --git a/LenovoLegionToolkit.csproj b/LenovoLegionToolkit.csproj
index 28604e5330..614eb25f9f 100644
--- a/LenovoLegionToolkit.csproj
+++ b/LenovoLegionToolkit.csproj
@@ -6,8 +6,8 @@
icon.ico
Lenovo Legion Toolkit
© 2021 Bartosz Cichecki
- 1.3
- 1.3
+ 1.3.1
+ 1.3.1
disable
true
false
diff --git a/Lib/Features/AbstractWmiFeature.cs b/Lib/Features/AbstractWmiFeature.cs
index 9d7845669c..125d4308c7 100644
--- a/Lib/Features/AbstractWmiFeature.cs
+++ b/Lib/Features/AbstractWmiFeature.cs
@@ -27,7 +27,7 @@ public T GetState()
return FromInternal(ExecuteGamezone("Get" + _methodNameSuffix, "Data"));
}
- public void SetState(T state)
+ public virtual void SetState(T state)
{
ExecuteGamezone("Set" + _methodNameSuffix, "Data",
new Dictionary
diff --git a/Lib/Features/PowerModeFeature.cs b/Lib/Features/PowerModeFeature.cs
index 0bed78cb0b..a0739c5211 100644
--- a/Lib/Features/PowerModeFeature.cs
+++ b/Lib/Features/PowerModeFeature.cs
@@ -1,7 +1,16 @@
-namespace LenovoLegionToolkit.Lib.Features
+using LenovoLegionToolkit.Lib.Utils;
+
+namespace LenovoLegionToolkit.Lib.Features
{
public class PowerModeFeature : AbstractWmiFeature
{
public PowerModeFeature() : base("SmartFanMode", 1, "IsSupportSmartFan") { }
+
+ public override void SetState(PowerModeState state)
+ {
+ base.SetState(state);
+
+ OS.SetPowerPlan(state.GetPowerPlanGuid());
+ }
}
}
\ No newline at end of file