Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Dec 20, 2020

close #168

Will this be annoying if flow fails checking update every time?

…de in one try catch instead of catch each exception seperately since they are all same kind of exception.

Use using instead of manually dispose.
{
Log.Exception($"|Updater.UpdateApp|Check your connection and proxy settings to github-cloud.s3.amazonaws.com.", e);
updateManager.Dispose();
api.ShowMsg("Update Fail!", "Check your connection and proxy settings to github-cloud.s3.amazonaws.com.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wording while we are at it, can we update title to "Updated failed" and subtitle to "Check your connection and try updating proxy settings to github-cloud.s3.amazonaws.com."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

{
if (!silentUpdate)
MessageBox.Show("You already have the latest Flow Launcher version");
updateManager.Dispose();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since it's using using var updateManager = await GitHubUpdateManager(GitHubRepository); in the above code, this Dispose() is not needed right?

if (!silentUpdate)
api.ShowMsg("Please wait...", "Checking for new update");

using var updateManager = await GitHubUpdateManager(GitHubRepository);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

back when i was working on this section of the code i read Squirrel had some reported issues where it is not properly disposing the updateManager, could we double check this issue is no longer relevant in our Squirrel version please. I think it was to do with certain Squirrel versions and when this project was still on .Net Framework

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember there is a comment on this part of code that said we need to manually dispose the updatemanager for squirrel 1.5.2, but the use of using will be fine since it is equal to dispose at the end of the scope.

@jjw24 jjw24 added enhancement New feature or request bug Something isn't working review in progress Indicates that a review is in progress for this PR and removed enhancement New feature or request labels Dec 21, 2020
@jjw24
Copy link
Member

jjw24 commented Dec 21, 2020

Will this be annoying if flow fails checking update every time?

just logging the update failure is definitely not cool, user should know when update fails for sure

@taooceros
Copy link
Member Author

Will this be annoying if flow fails checking update every time?

just logging the update failure is definitely not cool, user should know when update fails for sure

Agree with you! But since in my condition, the checking fails every time..... Let's also take a look at #171

@jjw24
Copy link
Member

jjw24 commented Dec 31, 2020

could you please do a merge dev on this one. also per comment above (line 56 of Updater.cs) do we need dispose still?

@taooceros
Copy link
Member Author

could you please do a merge dev on this one. also per comment above (line 56 of Updater.cs) do we need dispose still?

Sure

@taooceros
Copy link
Member Author

also per comment above (line 56 of Updater.cs) do we need dispose still?

Removed

@jjw24 jjw24 removed the review in progress Indicates that a review is in progress for this PR label Dec 31, 2020
@jjw24 jjw24 merged commit 5f345e1 into Flow-Launcher:dev Dec 31, 2020
@taooceros taooceros deleted the InformUserWhenUpdateFail branch January 9, 2021 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inform user when version update is not successful via windows notification

2 participants