Skip to content

Commit

Permalink
Updated to 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Feb 3, 2019
1 parent 56a177f commit af99ce2
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [4.7] - 2019-02-03
- Added: Disable Cloud Clipboard experience (for Windows 10 1809)

## [4.6] - 2019-01-30
- Changed blocked IP from 127.0.0.1 to 0.0.0.0 in HOSTS editor
- Changed 'Restart' button to 'Apply & Restart'
Expand Down
17 changes: 17 additions & 0 deletions Optimizer/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Optimizer/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,20 @@ private void EnableToggleEvents()
toggleSwitch34.Click += new EventHandler(ToggleSwitch34_Click);
toggleSwitch35.Click += new EventHandler(ToggleSwitch35_Click);
toggleSwitch36.Click += new EventHandler(ToggleSwitch36_Click);
toggleSwitch37.Click += new EventHandler(ToggleSwitch37_Click);
}

private void ToggleSwitch37_Click(object sender, EventArgs e)
{
if (!toggleSwitch37.Checked)
{
Optimize.DisableCloudClipboard();
}
else
{
Optimize.EnableCloudClipboard();
}
Options.CurrentOptions.DisableCloudClipboard = !toggleSwitch37.Checked;
}

private void ToggleSwitch36_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -486,6 +500,7 @@ private void LoadWindowsXToggleStates()
toggleSwitch30.Checked = Options.CurrentOptions.ExcludeDrivers;
toggleSwitch34.Checked = Options.CurrentOptions.DisableInsiderService;
toggleSwitch35.Checked = Options.CurrentOptions.DisableFeatureUpdates;
toggleSwitch37.Checked = Options.CurrentOptions.DisableCloudClipboard;
}

private void Main_Load(object sender, EventArgs e)
Expand Down
16 changes: 16 additions & 0 deletions Optimizer/Optimize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -935,5 +935,21 @@ internal static void EnableSmartScreen()
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "SmartScreenEnabled", "On", RegistryValueKind.String);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\PhishingFilter", "EnabledV9", "1", RegistryValueKind.DWord);
}

internal static void DisableCloudClipboard()
{
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System", "AllowClipboardHistory", "0", RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System", "AllowCrossDeviceClipboard", "0", RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Clipboard", "EnableClipboardHistory", "0", RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\Clipboard", "EnableClipboardHistory", "0", RegistryValueKind.DWord);
}

internal static void EnableCloudClipboard()
{
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System", "AllowClipboardHistory", "1", RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System", "AllowCrossDeviceClipboard", "1", RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Clipboard", "EnableClipboardHistory", "1", RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\Clipboard", "EnableClipboardHistory", "1", RegistryValueKind.DWord);
}
}
}
2 changes: 2 additions & 0 deletions Optimizer/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class SettingsJson
public bool DisableCompatibilityAssistant { get; set; }
public bool DisableFaxService { get; set; }
public bool DisableSmartScreen { get; set; }
public bool DisableCloudClipboard { get; set; }

public bool EnableLegacyVolumeSlider { get; set; }
public bool EnableTaskbarColor { get; set; }
Expand Down Expand Up @@ -164,6 +165,7 @@ internal static void LoadSettings()
CurrentOptions.DisableCompatibilityAssistant = false;
CurrentOptions.DisableFaxService = false;
CurrentOptions.DisableSmartScreen = false;
CurrentOptions.DisableCloudClipboard = false;

CurrentOptions.EnableLegacyVolumeSlider = false;
CurrentOptions.EnableTaskbarColor = false;
Expand Down
2 changes: 1 addition & 1 deletion Optimizer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static class Program

// Enter current version here
internal readonly static float Major = 4;
internal readonly static float Minor = 6;
internal readonly static float Minor = 7;

internal static string GetCurrentVersionTostring()
{
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ https://github.com/hellzerg/optimizer/blob/master/IMAGES.md

## Details: ##

* Latest version: 4.6
* Released: January 30, 2019
* Latest version: 4.7
* Released: February 3, 2019
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.6
4.7

0 comments on commit af99ce2

Please sign in to comment.