Skip to content

Commit

Permalink
Upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Dec 28, 2022
1 parent 08bf919 commit 45102d1
Show file tree
Hide file tree
Showing 7 changed files with 228 additions and 287 deletions.
12 changes: 1 addition & 11 deletions CONFS.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,7 @@
- ```optimizer.exe /disable=indicium,uwp,hosts```

## Reset Optimizer configuration might fix it when can't open ##
```optimizer.exe /reset```

## How to disable/enable Windows Hibernate function from command-line ##

- ```optimizer.exe /disablehibernate```
- ```optimizer.exe /enablehibernate```

## How to add or delete Optimizer from Windows startup ##

- ```optimizer.exe /addstartup```
- ```optimizer.exe /deletestartup```
```optimizer.exe /repair```

## How to disable/enable HPET (High Precision Event Timer) in order to gain a boost when gaming [use at your own risk!] ##

Expand Down
2 changes: 1 addition & 1 deletion Optimizer/Controls/MoonTabs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected override void OnHandleCreated(EventArgs e)

// Send TCM_SETMINTABWIDTH
string maxTitle = string.Empty;
foreach(TabPage x in this.TabPages)
foreach (TabPage x in this.TabPages)
{
if (x.Text.Length > maxTitle.Length) maxTitle = x.Text;
}
Expand Down
1 change: 0 additions & 1 deletion Optimizer/Optimize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System;
using System.Diagnostics;
using System.IO;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Rebar;

namespace Optimizer
{
Expand Down
1 change: 1 addition & 0 deletions Optimizer/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ internal static void LoadSettings()
CurrentOptions = JsonConvert.DeserializeObject<SettingsJson>(File.ReadAllText(SettingsFile));
}

// prevent options from corruption
if (CurrentOptions.Theme == Color.Empty || CurrentOptions.Theme == Color.FromArgb(0, 0, 0, 0))
{
CurrentOptions.Theme = Color.FromArgb(153, 102, 204);
Expand Down
Loading

0 comments on commit 45102d1

Please sign in to comment.