File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 99using System . Threading ;
1010using System . Threading . Tasks ;
1111using System . Windows ;
12- using CommunityToolkit . Mvvm . DependencyInjection ;
13- using Flow . Launcher . Core . Resource ;
1412using Flow . Launcher . Plugin . SharedCommands ;
1513using Flow . Launcher . Infrastructure ;
1614using Flow . Launcher . Infrastructure . Http ;
@@ -131,7 +129,7 @@ private static async Task<UpdateManager> GitHubUpdateManagerAsync(string reposit
131129
132130 await using var jsonStream = await Http . GetStreamAsync ( api ) . ConfigureAwait ( false ) ;
133131
134- var releases = await System . Text . Json . JsonSerializer . DeserializeAsync < List < GithubRelease > > ( jsonStream ) . ConfigureAwait ( false ) ;
132+ var releases = await JsonSerializer . DeserializeAsync < List < GithubRelease > > ( jsonStream ) . ConfigureAwait ( false ) ;
135133 var latest = releases . Where ( r => ! r . Prerelease ) . OrderByDescending ( r => r . PublishedAt ) . First ( ) ;
136134 var latestUrl = latest . HtmlUrl . Replace ( "/tag/" , "/download/" ) ;
137135
@@ -146,10 +144,9 @@ private static async Task<UpdateManager> GitHubUpdateManagerAsync(string reposit
146144 return manager ;
147145 }
148146
149- private static string NewVersionTips ( string version )
147+ private string NewVersionTips ( string version )
150148 {
151- var translator = Ioc . Default . GetRequiredService < Internationalization > ( ) ;
152- var tips = string . Format ( translator . GetTranslation ( "newVersionTips" ) , version ) ;
149+ var tips = string . Format ( _api . GetTranslation ( "newVersionTips" ) , version ) ;
153150
154151 return tips ;
155152 }
You can’t perform that action at this time.
0 commit comments