Skip to content

Commit 6f2a166

Browse files
authored
Fix empty hotkeys field in shortcut file props
1 parent c755333 commit 6f2a166

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/windows.vbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ sub createFile()
3232
objLink.WorkingDirectory = strCwd
3333
objLink.IconLocation = strIcon
3434
objLink.WindowStyle = strWindowMode
35-
objLink.Hotkey = strHotkey
35+
If Trim(strHotkey) <> "" Then
36+
objLink.Hotkey = strHotkey
37+
End If
3638
objLink.Save
3739
end sub
3840

0 commit comments

Comments
 (0)