Skip to content

Commit eb73656

Browse files
committed
Change the Alphabet Name to allow future expansion
1 parent f146dd6 commit eb73656

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Flow.Launcher.Infrastructure/Alphabet.cs renamed to Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface IAlphabet
1717
string Translate(string stringToTranslate);
1818
}
1919

20-
public class Alphabet : IAlphabet
20+
public class PinyinAlphabet : IAlphabet
2121
{
2222
private ConcurrentDictionary<string, string> _pinyinCache = new ConcurrentDictionary<string, string>();
2323
private Settings _settings;

Flow.Launcher/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public partial class App : IDisposable, ISingleInstanceApp
2929
private SettingWindowViewModel _settingsVM;
3030
private readonly Updater _updater = new Updater(Flow.Launcher.Properties.Settings.Default.GithubRepo);
3131
private readonly Portable _portable = new Portable();
32-
private readonly Alphabet _alphabet = new Alphabet();
32+
private readonly PinyinAlphabet _alphabet = new PinyinAlphabet();
3333
private StringMatcher _stringMatcher;
3434

3535
[STAThread]

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ public class PublicAPIInstance : IPublicAPI
2121
{
2222
private readonly SettingWindowViewModel _settingsVM;
2323
private readonly MainViewModel _mainVM;
24-
private readonly Alphabet _alphabet;
24+
private readonly PinyinAlphabet _alphabet;
2525

2626
#region Constructor
2727

28-
public PublicAPIInstance(SettingWindowViewModel settingsVM, MainViewModel mainVM, Alphabet alphabet)
28+
public PublicAPIInstance(SettingWindowViewModel settingsVM, MainViewModel mainVM, PinyinAlphabet alphabet)
2929
{
3030
_settingsVM = settingsVM;
3131
_mainVM = mainVM;

0 commit comments

Comments
 (0)