From 8c450f3457629d8e39921498d09447aa823b21c0 Mon Sep 17 00:00:00 2001 From: seraphima Date: Wed, 19 Jun 2024 11:16:58 +0200 Subject: [PATCH] spellcheck --- .../ViewModels/MainViewModel.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/modules/Projects/ProjectsEditor/ViewModels/MainViewModel.cs b/src/modules/Projects/ProjectsEditor/ViewModels/MainViewModel.cs index 9a9ac441af..dd5662ac1b 100644 --- a/src/modules/Projects/ProjectsEditor/ViewModels/MainViewModel.cs +++ b/src/modules/Projects/ProjectsEditor/ViewModels/MainViewModel.cs @@ -171,19 +171,19 @@ namespace ProjectsEditor.ViewModels File.WriteAllBytes(shortcutAddress, Array.Empty()); // Create a ShellLinkObject that references the .lnk file - Shell32.Shell shl = new Shell32.Shell(); - Shell32.Folder dir = shl.NameSpace(FolderUtils.Desktop()); - Shell32.FolderItem itm = dir.Items().Item($"{project.Name}.lnk"); - Shell32.ShellLinkObject lnk = (Shell32.ShellLinkObject)itm.GetLink; + Shell32.Shell shell = new Shell32.Shell(); + Shell32.Folder dir = shell.NameSpace(FolderUtils.Desktop()); + Shell32.FolderItem folderItem = dir.Items().Item($"{project.Name}.lnk"); + Shell32.ShellLinkObject link = (Shell32.ShellLinkObject)folderItem.GetLink; // Set the .lnk file properties - lnk.Description = $"Project Launcher {project.Id}"; - lnk.Path = Path.Combine(basePath, "PowerToys.ProjectsLauncher.exe"); - lnk.Arguments = project.Id.ToString(); - lnk.WorkingDirectory = basePath; - lnk.SetIconLocation(shortcutIconFilename, 0); + link.Description = $"Project Launcher {project.Id}"; + link.Path = Path.Combine(basePath, "PowerToys.ProjectsLauncher.exe"); + link.Arguments = project.Id.ToString(); + link.WorkingDirectory = basePath; + link.SetIconLocation(shortcutIconFilename, 0); - lnk.Save(shortcutAddress); + link.Save(shortcutAddress); } catch (Exception ex) {