1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Fix file select popup getting stuck when switching first run screens while selecting

Closes #21663
Supersedes #21724
This commit is contained in:
wiskerz76 2022-12-19 16:33:35 -05:00 committed by Dean Herbert
parent ca8d2bec9d
commit 439b8ac56a

View File

@ -126,7 +126,8 @@ namespace osu.Game.Overlays.FirstRunSetup
if (available)
{
copyInformation.Text = "Data migration will use \"hard links\". No extra disk space will be used, and you can delete either data folder at any point without affecting the other installation.";
copyInformation.Text =
"Data migration will use \"hard links\". No extra disk space will be used, and you can delete either data folder at any point without affecting the other installation.";
}
else if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
copyInformation.Text = "Lightweight linking of files is not supported on your operating system yet, so a copy of all files will be made during import.";
@ -173,6 +174,18 @@ namespace osu.Game.Overlays.FirstRunSetup
c.Current.Disabled = !allow;
}
public override void OnSuspending(ScreenTransitionEvent e)
{
stableLocatorTextBox.HidePopover();
base.OnSuspending(e);
}
public override bool OnExiting(ScreenExitEvent e)
{
stableLocatorTextBox.HidePopover();
return base.OnExiting(e);
}
private partial class ImportCheckbox : SettingsCheckbox
{
public readonly StableContent StableContent;