66using System . Windows ;
77using CommunityToolkit . Mvvm . Input ;
88using Flow . Launcher . Core ;
9- using Flow . Launcher . Core . Resource ;
109using Flow . Launcher . Infrastructure ;
1110using Flow . Launcher . Infrastructure . Logger ;
1211using 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