Skip to content

Commit 8e8b5db

Browse files
committed
Code quality
1 parent a3c18a6 commit 8e8b5db

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Windows;
77
using CommunityToolkit.Mvvm.Input;
88
using Flow.Launcher.Core;
9-
using Flow.Launcher.Core.Resource;
109
using Flow.Launcher.Infrastructure;
1110
using Flow.Launcher.Infrastructure.Logger;
1211
using Flow.Launcher.Infrastructure.UserSettings;
@@ -24,7 +23,7 @@ public string LogFolderSize
2423
get
2524
{
2625
var size = GetLogFiles().Sum(file => file.Length);
27-
return $"{InternationalizationManager.Instance.GetTranslation("clearlogfolder")} ({BytesToReadableString(size)})";
26+
return $"{App.API.GetTranslation("clearlogfolder")} ({BytesToReadableString(size)})";
2827
}
2928
}
3029

@@ -42,7 +41,7 @@ public string LogFolderSize
4241
};
4342

4443
public string ActivatedTimes => string.Format(
45-
InternationalizationManager.Instance.GetTranslation("about_activate_times"),
44+
App.API.GetTranslation("about_activate_times"),
4645
_settings.ActivateTimes
4746
);
4847

@@ -88,8 +87,8 @@ private void OpenWelcomeWindow()
8887
private void AskClearLogFolderConfirmation()
8988
{
9089
var confirmResult = App.API.ShowMsgBox(
91-
InternationalizationManager.Instance.GetTranslation("clearlogfolderMessage"),
92-
InternationalizationManager.Instance.GetTranslation("clearlogfolder"),
90+
App.API.GetTranslation("clearlogfolderMessage"),
91+
App.API.GetTranslation("clearlogfolder"),
9392
MessageBoxButton.YesNo
9493
);
9594

@@ -121,7 +120,7 @@ private void OpenLogsFolder()
121120
}
122121

123122
[RelayCommand]
124-
private Task UpdateApp() => _updater.UpdateAppAsync(false);
123+
private Task UpdateAppAsync() => _updater.UpdateAppAsync(false);
125124

126125
private void ClearLogFolder()
127126
{

0 commit comments

Comments
 (0)