hellzerg 6 лет назад
Родитель
Сommit
af99ce28f2
8 измененных файлов с 57 добавлено и 4 удалено
  1. 3 0
      CHANGELOG.md
  2. 17 0
      Optimizer/MainForm.Designer.cs
  3. 15 0
      Optimizer/MainForm.cs
  4. 16 0
      Optimizer/Optimize.cs
  5. 2 0
      Optimizer/Options.cs
  6. 1 1
      Optimizer/Program.cs
  7. 2 2
      README.md
  8. 1 1
      version.txt

+ 3 - 0
CHANGELOG.md

@@ -2,6 +2,9 @@
 
 
 All notable changes to this project will be documented in this file.
 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
 ## [4.6] - 2019-01-30
 - Changed blocked IP from 127.0.0.1 to 0.0.0.0 in HOSTS editor
 - Changed blocked IP from 127.0.0.1 to 0.0.0.0 in HOSTS editor
 - Changed 'Restart' button to 'Apply & Restart'
 - Changed 'Restart' button to 'Apply & Restart'

+ 17 - 0
Optimizer/MainForm.Designer.cs

@@ -244,6 +244,7 @@
             this.DefineCommandIconDialog = new System.Windows.Forms.OpenFileDialog();
             this.DefineCommandIconDialog = new System.Windows.Forms.OpenFileDialog();
             this.integratorTimer = new System.Windows.Forms.Timer(this.components);
             this.integratorTimer = new System.Windows.Forms.Timer(this.components);
             this.runDialogTime = new System.Windows.Forms.Timer(this.components);
             this.runDialogTime = new System.Windows.Forms.Timer(this.components);
+            this.toggleSwitch37 = new Optimizer.ToggleSwitch();
             this.tpanel.SuspendLayout();
             this.tpanel.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.bpanel.SuspendLayout();
             this.bpanel.SuspendLayout();
@@ -643,6 +644,7 @@
             // windowsXTab
             // windowsXTab
             // 
             // 
             this.windowsXTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
             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.toggleSwitch35);
             this.windowsXTab.Controls.Add(this.toggleSwitch34);
             this.windowsXTab.Controls.Add(this.toggleSwitch34);
             this.windowsXTab.Controls.Add(this.toggleSwitch27);
             this.windowsXTab.Controls.Add(this.toggleSwitch27);
@@ -3336,6 +3338,20 @@
             this.runDialogTime.Interval = 5;
             this.runDialogTime.Interval = 5;
             this.runDialogTime.Tick += new System.EventHandler(this.runDialogTimer_Tick);
             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
             // MainForm
             // 
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
             this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
@@ -3631,6 +3647,7 @@
         private ToggleSwitch toggleSwitch36;
         private ToggleSwitch toggleSwitch36;
         private System.Windows.Forms.CheckBox chkReadOnly;
         private System.Windows.Forms.CheckBox chkReadOnly;
         private System.Windows.Forms.Label label29;
         private System.Windows.Forms.Label label29;
+        private ToggleSwitch toggleSwitch37;
     }
     }
 }
 }
 
 

+ 15 - 0
Optimizer/MainForm.cs

@@ -171,6 +171,20 @@ namespace Optimizer
             toggleSwitch34.Click += new EventHandler(ToggleSwitch34_Click);
             toggleSwitch34.Click += new EventHandler(ToggleSwitch34_Click);
             toggleSwitch35.Click += new EventHandler(ToggleSwitch35_Click);
             toggleSwitch35.Click += new EventHandler(ToggleSwitch35_Click);
             toggleSwitch36.Click += new EventHandler(ToggleSwitch36_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)
         private void ToggleSwitch36_Click(object sender, EventArgs e)
@@ -486,6 +500,7 @@ namespace Optimizer
             toggleSwitch30.Checked = Options.CurrentOptions.ExcludeDrivers;
             toggleSwitch30.Checked = Options.CurrentOptions.ExcludeDrivers;
             toggleSwitch34.Checked = Options.CurrentOptions.DisableInsiderService;
             toggleSwitch34.Checked = Options.CurrentOptions.DisableInsiderService;
             toggleSwitch35.Checked = Options.CurrentOptions.DisableFeatureUpdates;
             toggleSwitch35.Checked = Options.CurrentOptions.DisableFeatureUpdates;
+            toggleSwitch37.Checked = Options.CurrentOptions.DisableCloudClipboard;
         }
         }
 
 
         private void Main_Load(object sender, EventArgs e)
         private void Main_Load(object sender, EventArgs e)

+ 16 - 0
Optimizer/Optimize.cs

@@ -935,5 +935,21 @@ namespace Optimizer
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "SmartScreenEnabled", "On", RegistryValueKind.String);
             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);
             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 - 0
Optimizer/Options.cs

@@ -29,6 +29,7 @@ namespace Optimizer
         public bool DisableCompatibilityAssistant { get; set; }
         public bool DisableCompatibilityAssistant { get; set; }
         public bool DisableFaxService { get; set; }
         public bool DisableFaxService { get; set; }
         public bool DisableSmartScreen { get; set; }
         public bool DisableSmartScreen { get; set; }
+        public bool DisableCloudClipboard { get; set; }
 
 
         public bool EnableLegacyVolumeSlider { get; set; }
         public bool EnableLegacyVolumeSlider { get; set; }
         public bool EnableTaskbarColor { get; set; }
         public bool EnableTaskbarColor { get; set; }
@@ -164,6 +165,7 @@ namespace Optimizer
                 CurrentOptions.DisableCompatibilityAssistant = false;
                 CurrentOptions.DisableCompatibilityAssistant = false;
                 CurrentOptions.DisableFaxService = false;
                 CurrentOptions.DisableFaxService = false;
                 CurrentOptions.DisableSmartScreen = false;
                 CurrentOptions.DisableSmartScreen = false;
+                CurrentOptions.DisableCloudClipboard = false;
 
 
                 CurrentOptions.EnableLegacyVolumeSlider = false;
                 CurrentOptions.EnableLegacyVolumeSlider = false;
                 CurrentOptions.EnableTaskbarColor = false;
                 CurrentOptions.EnableTaskbarColor = false;

+ 1 - 1
Optimizer/Program.cs

@@ -18,7 +18,7 @@ namespace Optimizer
 
 
         // Enter current version here
         // Enter current version here
         internal readonly static float Major = 4;
         internal readonly static float Major = 4;
-        internal readonly static float Minor = 6;
+        internal readonly static float Minor = 7;
 
 
         internal static string GetCurrentVersionTostring()
         internal static string GetCurrentVersionTostring()
         {
         {

+ 2 - 2
README.md

@@ -37,5 +37,5 @@ https://github.com/hellzerg/optimizer/blob/master/IMAGES.md
 
 
 ## Details: ##
 ## Details: ##
 
 
-* Latest version: 4.6
-* Released: January 30, 2019
+* Latest version: 4.7
+* Released: February 3, 2019

+ 1 - 1
version.txt

@@ -1 +1 @@
-4.6
+4.7