osu icon indicating copy to clipboard operation
osu copied to clipboard

Dismiss checking notification when update is found

Open frenzibyte opened this issue 6 months ago • 8 comments

  • Closes https://github.com/ppy/osu/issues/33459

Extremely minor but won't hurt to fix.

frenzibyte avatar Jun 11 '25 16:06 frenzibyte

Have you tested that this is still a thing after the changes to UpdateManager in https://github.com/ppy/osu/pull/33575? I can tell you for one that this will heavily conflict/not really work after that change, but also I'd hope that it isn't required in the first place.

smoogipoo avatar Jun 11 '25 17:06 smoogipoo

I don't see anything different in #33575 with regards to the issue at hand. The only other option here is to make the CheckForUpdateAsync function actually only check for updates and split the actual update process to its own function, all such that the "checking for update" notification can be dismissed between those steps.

frenzibyte avatar Jun 11 '25 17:06 frenzibyte

Right - the second notification is the one that is downloading the update.

I think your proposal of splitting out the process sounds fine. I would rebase on https://github.com/ppy/osu/pull/33575 in any case.

smoogipoo avatar Jun 11 '25 18:06 smoogipoo

@peppy Before I address the concern above, what are your thoughts between having this PR as-is, and going with the approach proposed in https://github.com/ppy/osu/pull/33645#issuecomment-2963679865 (which will require minor refactor efforts).

frenzibyte avatar Jun 12 '25 06:06 frenzibyte

I can't understand your message there.

Given that this is likely going to conflict, I'd propose you start by rebasing and/or adjusting as you see fit.

Keep in mind you're dealing with already complicated logic, so if your plan is to refactor the whole world, it will likely end up in the bin.

peppy avatar Jun 12 '25 06:06 peppy

I'm asking if you're fine with the approach taken in this PR to fix the original issue, or if it's better to go with the proposal of splitting the "check for update" procedure and the "download and install update" procedure so that it become easier to fix the issue.

frenzibyte avatar Jun 12 '25 07:06 frenzibyte

I'm not sure which of those works better without writing them myself. The logic surrounding updating is complex and I can't give an assessment of that on a whim. See the kinds of issues that can arise in the other PR as an example of why.

peppy avatar Jun 12 '25 08:06 peppy

I'll leave this as it is until #33645 is merged first.

frenzibyte avatar Jun 12 '25 13:06 frenzibyte