Skip to content

Commit

Permalink
reset on power mode changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiye committed Nov 20, 2024
1 parent 650f7a1 commit 2f014ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenHardwareMonitor/UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ private void BackgroundUpdater_DoWork(object sender, DoWorkEventArgs e)

private void PowerModeChanged(object sender, Microsoft.Win32.PowerModeChangedEventArgs eventArgs)
{
if (eventArgs.Mode == Microsoft.Win32.PowerModes.Resume)
//if (eventArgs.Mode == Microsoft.Win32.PowerModes.Resume)
{
_computer.Reset();
}
Expand Down Expand Up @@ -968,7 +968,6 @@ private void ResetClick(object sender, EventArgs e)
_computer.Reset();
// restore the MainIcon setting
_systemTray.IsMainIconEnabled = _minimizeToTray.Value;
RestoreCollapsedNodeState(treeView);
}

private void TreeView_MouseMove(object sender, MouseEventArgs e)
Expand Down

0 comments on commit 2f014ff

Please sign in to comment.