mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-23 19:49:17 +08:00
Rename YmlInterpreter to ManifestInterpreter
This commit is contained in:
parent
da7b789bfe
commit
6952deb4ae
@ -8,17 +8,13 @@ using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using ShortcutGuide.Models;
|
||||
using Windows.Devices.SmartCards;
|
||||
using WinUIEx;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace ShortcutGuide
|
||||
{
|
||||
public class YmlInterpreter
|
||||
public class ManifestInterpreter
|
||||
{
|
||||
public static ShortcutList GetShortcutsOfApplication(string applicationName)
|
||||
{
|
@ -14,7 +14,7 @@ namespace ShortcutGuide
|
||||
{
|
||||
public static void Populate()
|
||||
{
|
||||
string path = Path.Combine(YmlInterpreter.GetPathOfIntepretations(), "Microsoft.PowerToys.yml");
|
||||
string path = Path.Combine(ManifestInterpreter.GetPathOfIntepretations(), "Microsoft.PowerToys.yml");
|
||||
|
||||
string content = File.ReadAllText(path);
|
||||
|
||||
|
@ -32,7 +32,7 @@ namespace ShortcutGuide
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
_currentApplicationIds = YmlInterpreter.GetAllCurrentApplicationIds();
|
||||
_currentApplicationIds = ManifestInterpreter.GetAllCurrentApplicationIds();
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
@ -95,7 +95,7 @@ namespace ShortcutGuide
|
||||
{
|
||||
foreach (var item in _currentApplicationIds)
|
||||
{
|
||||
if (item == YmlInterpreter.GetIndexYamlFile().DefaultShellName)
|
||||
if (item == ManifestInterpreter.GetIndexYamlFile().DefaultShellName)
|
||||
{
|
||||
WindowSelector.Items.Insert(0, new SelectorBarItem { Name = item, Text = "Windows", Icon = new FontIcon() { Glyph = "\xE770" } });
|
||||
}
|
||||
@ -103,7 +103,7 @@ namespace ShortcutGuide
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowSelector.Items.Add(new SelectorBarItem { Name = item, Text = YmlInterpreter.GetShortcutsOfApplication(item).Name });
|
||||
WindowSelector.Items.Add(new SelectorBarItem { Name = item, Text = ManifestInterpreter.GetShortcutsOfApplication(item).Name });
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace ShortcutGuide
|
||||
{
|
||||
public sealed partial class ShortcutView : Page, INotifyPropertyChanged
|
||||
{
|
||||
private ShortcutList shortcutList = YmlInterpreter.GetShortcutsOfApplication(ShortcutPageParameters.CurrentPageName);
|
||||
private ShortcutList shortcutList = ManifestInterpreter.GetShortcutsOfApplication(ShortcutPageParameters.CurrentPageName);
|
||||
|
||||
public ShortcutView()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user