6
6
using System . Windows ;
7
7
using CommunityToolkit . Mvvm . Input ;
8
8
using Flow . Launcher . Core ;
9
- using Flow . Launcher . Core . Resource ;
10
9
using Flow . Launcher . Infrastructure ;
11
10
using Flow . Launcher . Infrastructure . Logger ;
12
11
using Flow . Launcher . Infrastructure . UserSettings ;
@@ -24,7 +23,7 @@ public string LogFolderSize
24
23
get
25
24
{
26
25
var size = GetLogFiles ( ) . Sum ( file => file . Length ) ;
27
- return $ "{ InternationalizationManager . Instance . GetTranslation ( "clearlogfolder" ) } ({ BytesToReadableString ( size ) } )";
26
+ return $ "{ App . API . GetTranslation ( "clearlogfolder" ) } ({ BytesToReadableString ( size ) } )";
28
27
}
29
28
}
30
29
@@ -42,7 +41,7 @@ public string LogFolderSize
42
41
} ;
43
42
44
43
public string ActivatedTimes => string . Format (
45
- InternationalizationManager . Instance . GetTranslation ( "about_activate_times" ) ,
44
+ App . API . GetTranslation ( "about_activate_times" ) ,
46
45
_settings . ActivateTimes
47
46
) ;
48
47
@@ -88,8 +87,8 @@ private void OpenWelcomeWindow()
88
87
private void AskClearLogFolderConfirmation ( )
89
88
{
90
89
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" ) ,
93
92
MessageBoxButton . YesNo
94
93
) ;
95
94
@@ -121,7 +120,7 @@ private void OpenLogsFolder()
121
120
}
122
121
123
122
[ RelayCommand ]
124
- private Task UpdateApp ( ) => _updater . UpdateAppAsync ( false ) ;
123
+ private Task UpdateAppAsync ( ) => _updater . UpdateAppAsync ( false ) ;
125
124
126
125
private void ClearLogFolder ( )
127
126
{
0 commit comments