Commit de60d8e
committed
Fix variable closure issue in PS Core session menu items
This change fixes an issue with variable closures in the PowerShell Core
items of the session menu. The use of `var` instead of `let` caused the
last item in the list of PowerShell Core items to always be used no
matter which of those items was selected.1 parent 8817257 commit de60d8e
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
738 | | - | |
739 | | - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
740 | 740 | | |
741 | | - | |
742 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
743 | 747 | | |
744 | 748 | | |
745 | 749 | | |
| |||
0 commit comments