File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,9 @@ public async Task UpdateAppAsync(IPublicAPI api, bool silentUpdate = true)
91
91
catch ( Exception e ) when ( e is HttpRequestException or WebException or SocketException || e . InnerException is TimeoutException )
92
92
{
93
93
Log . Exception ( $ "|Updater.UpdateApp|Check your connection and proxy settings to github-cloud.s3.amazonaws.com.", e ) ;
94
- api . ShowMsg ( api . GetTranslation ( "update_flowlauncher_fail" ) ,
95
- api . GetTranslation ( "update_flowlauncher_check_connection" ) ) ;
94
+ if ( ! silentUpdate )
95
+ api . ShowMsg ( api . GetTranslation ( "update_flowlauncher_fail" ) ,
96
+ api . GetTranslation ( "update_flowlauncher_check_connection" ) ) ;
96
97
}
97
98
finally
98
99
{
@@ -124,7 +125,7 @@ private async Task<UpdateManager> GitHubUpdateManager(string repository)
124
125
var releases = await System . Text . Json . JsonSerializer . DeserializeAsync < List < GithubRelease > > ( jsonStream ) . ConfigureAwait ( false ) ;
125
126
var latest = releases . Where ( r => ! r . Prerelease ) . OrderByDescending ( r => r . PublishedAt ) . First ( ) ;
126
127
var latestUrl = latest . HtmlUrl . Replace ( "/tag/" , "/download/" ) ;
127
-
128
+
128
129
var client = new WebClient
129
130
{
130
131
Proxy = Http . WebProxy
You can’t perform that action at this time.
0 commit comments