Skip to content

Commit 6952deb

Browse files
committed
Rename YmlInterpreter to ManifestInterpreter
1 parent da7b789 commit 6952deb

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

src/modules/ShortcutGuideV2/ShortcutGuide.Ui/YmlInterpreter.cs renamed to src/modules/ShortcutGuideV2/ShortcutGuide.Ui/ManifestInterpreter.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@
88
using System.Diagnostics;
99
using System.IO;
1010
using System.Linq;
11-
using System.Runtime.InteropServices;
12-
using System.Text;
1311
using System.Text.RegularExpressions;
1412
using ShortcutGuide.Models;
15-
using Windows.Devices.SmartCards;
16-
using WinUIEx;
1713
using YamlDotNet.Serialization;
1814

1915
namespace ShortcutGuide
2016
{
21-
public class YmlInterpreter
17+
public class ManifestInterpreter
2218
{
2319
public static ShortcutList GetShortcutsOfApplication(string applicationName)
2420
{

src/modules/ShortcutGuideV2/ShortcutGuide.Ui/PowerToysShortcutsPopulator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal sealed partial class PowerToysShortcutsPopulator
1414
{
1515
public static void Populate()
1616
{
17-
string path = Path.Combine(YmlInterpreter.GetPathOfIntepretations(), "Microsoft.PowerToys.yml");
17+
string path = Path.Combine(ManifestInterpreter.GetPathOfIntepretations(), "Microsoft.PowerToys.yml");
1818

1919
string content = File.ReadAllText(path);
2020

src/modules/ShortcutGuideV2/ShortcutGuide.Ui/ShortcutGuideXAML/MainWindow.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed partial class MainWindow : WindowEx
3232

3333
public MainWindow()
3434
{
35-
_currentApplicationIds = YmlInterpreter.GetAllCurrentApplicationIds();
35+
_currentApplicationIds = ManifestInterpreter.GetAllCurrentApplicationIds();
3636

3737
InitializeComponent();
3838

@@ -95,15 +95,15 @@ private void OnLauched(object sender, WindowActivatedEventArgs e)
9595
{
9696
foreach (var item in _currentApplicationIds)
9797
{
98-
if (item == YmlInterpreter.GetIndexYamlFile().DefaultShellName)
98+
if (item == ManifestInterpreter.GetIndexYamlFile().DefaultShellName)
9999
{
100100
WindowSelector.Items.Insert(0, new SelectorBarItem { Name = item, Text = "Windows", Icon = new FontIcon() { Glyph = "\xE770" } });
101101
}
102102
else
103103
{
104104
try
105105
{
106-
WindowSelector.Items.Add(new SelectorBarItem { Name = item, Text = YmlInterpreter.GetShortcutsOfApplication(item).Name });
106+
WindowSelector.Items.Add(new SelectorBarItem { Name = item, Text = ManifestInterpreter.GetShortcutsOfApplication(item).Name });
107107
}
108108
catch (IOException)
109109
{

src/modules/ShortcutGuideV2/ShortcutGuide.Ui/ShortcutGuideXAML/ShortcutView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace ShortcutGuide
1717
{
1818
public sealed partial class ShortcutView : Page, INotifyPropertyChanged
1919
{
20-
private ShortcutList shortcutList = YmlInterpreter.GetShortcutsOfApplication(ShortcutPageParameters.CurrentPageName);
20+
private ShortcutList shortcutList = ManifestInterpreter.GetShortcutsOfApplication(ShortcutPageParameters.CurrentPageName);
2121

2222
public ShortcutView()
2323
{

0 commit comments

Comments
 (0)