Removed registry writing code (#1748)

This commit is contained in:
Arjun Balgovind 2020-03-27 13:52:54 -07:00 committed by GitHub
parent 3897fc5666
commit a4749d376a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,18 +160,6 @@ namespace WindowWalker.ViewModels
public WindowWalkerViewModel(System.Windows.Window mainWindow)
{
// The path to the key where Windows looks for startup applications
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey(
@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
// Path to launch shortcut
string startPath = Environment.GetFolderPath(Environment.SpecialFolder.Programs)
+ @"\WindowWalker\WindowWalker.appref-ms";
rkApp.SetValue("WindowWalker", startPath);
rkApp.Close();
SearchController.Instance.OnSearchResultUpdate += SearchResultUpdated;
OpenWindows.Instance.UpdateOpenWindowsList();
Hwnd = new WindowInteropHelper(mainWindow).Handle;