Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'stax76:master' into 5600CM
Browse files Browse the repository at this point in the history
  • Loading branch information
hooke007 authored Dec 8, 2021
2 parents 690450e + bde4849 commit c1a56c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ The command palette based playlist showing my favorite artist of the stax record
![Playlist](docs/img/Playlist.png)


Related apps
------------

Find a list of related apps:
List of my apps
---------------

https://stax76.github.io/frankskare
11 changes: 7 additions & 4 deletions src/Misc/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,12 @@ public void BuildMenu()

foreach (CommandItem item in items)
{
if (string.IsNullOrEmpty(item.Path))
var tempItem = item;

if (string.IsNullOrEmpty(tempItem.Path))
continue;

var menuItem = MenuHelp.Add(ContextMenu.Items, item.Path);
var menuItem = MenuHelp.Add(ContextMenu.Items, tempItem.Path);

if (menuItem != null)
{
Expand All @@ -679,15 +681,16 @@ public void BuildMenu()
MenuAutoResetEvent.WaitOne();
System.Windows.Application.Current.Dispatcher.Invoke(
DispatcherPriority.Background, new Action(delegate { }));
Core.Command(item.Command);
if (!string.IsNullOrEmpty(tempItem.Command))
Core.Command(tempItem.Command);
});
}
catch (Exception ex) {
Msg.ShowException(ex);
}
};

menuItem.InputGestureText = item.Input;
menuItem.InputGestureText = tempItem.Input;
}
}
}
Expand Down

0 comments on commit c1a56c5

Please sign in to comment.