-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bypass external link dialog for links on the trusted osu! domain #28363
Conversation
Co-authored-by: Joseph Madamba <madamba.joehu@outlook.com>
The `Strings` suffix is not supposed to be in here, judging by other localisation classes.
@@ -170,6 +173,8 @@ public partial class MenuImage : OsuClickableContainer | |||
|
|||
private Sprite flash = null!; | |||
|
|||
public override bool IsPresent => base.IsPresent || Scheduler.HasPendingTasks; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a safety for
osu/osu.Game/Screens/Menu/OnlineMenuBanner.cs
Lines 214 to 218 in 53b7c29
openUrlAction = Scheduler.AddDelayed(() => | |
{ | |
if (!string.IsNullOrEmpty(Image.Url)) | |
game?.HandleLink(Image.Url); | |
}, 250); |
I will admit I spent over 1 hour making the test for this work. It turned out that online content was replacing the test content in headless only, amongst other issues. I'm not 100% sure this is required, but it feels like it may be for the an edge case where the banner somehow fades out before the delay is reached.
Kind of addresses #28055 for trusted links at least.