Skip to content

Commit 288b51c

Browse files
committed
* ShowFileProperties improvement
* Added Properties contextmenuitem to translation queue
1 parent 0163e64 commit 288b51c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DeadLock/Classes/NativeMethods.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ internal static IEnumerable<Process> FindLockingProcesses(string path, Language
167167
/// </summary>
168168
/// <param name="path">The path of the file.</param>
169169
/// <returns></returns>
170-
internal static bool ShowFileProperties(string path)
170+
internal static void ShowFileProperties(string path)
171171
{
172172
Shellexecuteinfo info = new Shellexecuteinfo();
173173
info.cbSize = Marshal.SizeOf(info);
174174
info.lpVerb = "properties";
175175
info.lpFile = path;
176176
info.nShow = 5;
177177
info.fMask = 12;
178-
return ShellExecuteEx(ref info);
178+
ShellExecuteEx(ref info);
179179
}
180180
}
181181
}

DeadLock/Forms/FrmMain.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ private void LanguageSwitch()
155155
//Main Form - ContextMenu Details:
156156
killToolStripMenuItem.Text = l.CmiKill;
157157
openFileLocationToolStripMenuItem.Text = l.CmiOpenFileLocation;
158+
propertiesToolStripMenuItem.Text = l.CmiProperties;
158159

159160
//Main Form - NotifyIcon:
160161
hideShowToolStripMenuItem.Text = l.CmiHideShow;

0 commit comments

Comments
 (0)