mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
Removed registry writing code (#1748)
This commit is contained in:
@@ -160,18 +160,6 @@ namespace WindowWalker.ViewModels
|
|||||||
|
|
||||||
public WindowWalkerViewModel(System.Windows.Window mainWindow)
|
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;
|
SearchController.Instance.OnSearchResultUpdate += SearchResultUpdated;
|
||||||
OpenWindows.Instance.UpdateOpenWindowsList();
|
OpenWindows.Instance.UpdateOpenWindowsList();
|
||||||
Hwnd = new WindowInteropHelper(mainWindow).Handle;
|
Hwnd = new WindowInteropHelper(mainWindow).Handle;
|
||||||
|
|||||||
Reference in New Issue
Block a user