We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79ec797 + d4c5e4e commit 82bac34Copy full SHA for 82bac34
src/Carnac.Logic/ShortcutProvider.cs
@@ -15,7 +15,11 @@ public ShortcutProvider()
15
{
16
string folder = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName) + @"\Keymaps\";
17
string filter = "*.yml";
18
- if (!Directory.Exists(folder)) return;
+ if (!Directory.Exists(folder))
19
+ {
20
+ shortcuts = new List<ShortcutCollection>();
21
+ return;
22
+ }
23
string[] files = Directory.GetFiles(folder, filter);
24
25
shortcuts = GetYamlMappings(files).Select(GetShortcuts).ToList();
0 commit comments