From af99ce28f2a9cb3b9c51b1f2cd4041d24ae5c539 Mon Sep 17 00:00:00 2001 From: hellzerg Date: Sun, 3 Feb 2019 18:13:10 +0200 Subject: [PATCH] Updated to 4.7 --- CHANGELOG.md | 3 +++ Optimizer/MainForm.Designer.cs | 17 +++++++++++++++++ Optimizer/MainForm.cs | 15 +++++++++++++++ Optimizer/Optimize.cs | 16 ++++++++++++++++ Optimizer/Options.cs | 2 ++ Optimizer/Program.cs | 2 +- README.md | 4 ++-- version.txt | 2 +- 8 files changed, 57 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8b12d9f..da9c640d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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' diff --git a/Optimizer/MainForm.Designer.cs b/Optimizer/MainForm.Designer.cs index 07491439..33bda1bb 100644 --- a/Optimizer/MainForm.Designer.cs +++ b/Optimizer/MainForm.Designer.cs @@ -244,6 +244,7 @@ private void InitializeComponent() this.DefineCommandIconDialog = new System.Windows.Forms.OpenFileDialog(); this.integratorTimer = new System.Windows.Forms.Timer(this.components); this.runDialogTime = new System.Windows.Forms.Timer(this.components); + this.toggleSwitch37 = new Optimizer.ToggleSwitch(); this.tpanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.bpanel.SuspendLayout(); @@ -643,6 +644,7 @@ private void InitializeComponent() // windowsXTab // this.windowsXTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20))))); + this.windowsXTab.Controls.Add(this.toggleSwitch37); this.windowsXTab.Controls.Add(this.toggleSwitch35); this.windowsXTab.Controls.Add(this.toggleSwitch34); this.windowsXTab.Controls.Add(this.toggleSwitch27); @@ -3336,6 +3338,20 @@ private void InitializeComponent() this.runDialogTime.Interval = 5; this.runDialogTime.Tick += new System.EventHandler(this.runDialogTimer_Tick); // + // toggleSwitch37 + // + this.toggleSwitch37.Location = new System.Drawing.Point(550, 290); + this.toggleSwitch37.Margin = new System.Windows.Forms.Padding(2); + this.toggleSwitch37.Name = "toggleSwitch37"; + this.toggleSwitch37.OffFont = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.toggleSwitch37.OffForeColor = System.Drawing.Color.White; + this.toggleSwitch37.OnFont = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.toggleSwitch37.OnForeColor = System.Drawing.Color.White; + this.toggleSwitch37.OnText = "Disable Cloud Clipboard"; + this.toggleSwitch37.Size = new System.Drawing.Size(260, 39); + this.toggleSwitch37.TabIndex = 59; + this.toggleSwitch37.Tag = "themeable"; + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); @@ -3631,6 +3647,7 @@ private void InitializeComponent() private ToggleSwitch toggleSwitch36; private System.Windows.Forms.CheckBox chkReadOnly; private System.Windows.Forms.Label label29; + private ToggleSwitch toggleSwitch37; } } diff --git a/Optimizer/MainForm.cs b/Optimizer/MainForm.cs index 6a9cefdd..3413a8d0 100644 --- a/Optimizer/MainForm.cs +++ b/Optimizer/MainForm.cs @@ -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) @@ -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) diff --git a/Optimizer/Optimize.cs b/Optimizer/Optimize.cs index a0e8c59a..e8c3772b 100644 --- a/Optimizer/Optimize.cs +++ b/Optimizer/Optimize.cs @@ -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); + } } } diff --git a/Optimizer/Options.cs b/Optimizer/Options.cs index 62a8d85f..c2cd0578 100644 --- a/Optimizer/Options.cs +++ b/Optimizer/Options.cs @@ -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; } @@ -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; diff --git a/Optimizer/Program.cs b/Optimizer/Program.cs index f3def031..12f35c1d 100644 --- a/Optimizer/Program.cs +++ b/Optimizer/Program.cs @@ -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() { diff --git a/README.md b/README.md index 70e0b0af..8abdc138 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/version.txt b/version.txt index be9fc831..4b65d9df 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -4.6 \ No newline at end of file +4.7 \ No newline at end of file