mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Removed registry writing code (#1748)
This commit is contained in:
parent
3897fc5666
commit
a4749d376a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user