mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 09:20:02 +09:00
Reword ImportFromStablePopup and display the popup regardless of whether a stable install is detected.
This commit is contained in:
@ -87,7 +87,7 @@ namespace osu.Game.Database
|
|||||||
return cachedStorage;
|
return cachedStorage;
|
||||||
|
|
||||||
var taskCompletionSource = new TaskCompletionSource<string>(TaskCreationOptions.RunContinuationsAsynchronously);
|
var taskCompletionSource = new TaskCompletionSource<string>(TaskCreationOptions.RunContinuationsAsynchronously);
|
||||||
dialogOverlay.Push(new StableDirectoryLocationDialog(taskCompletionSource));
|
Schedule(() => dialogOverlay.Push(new StableDirectoryLocationDialog(taskCompletionSource)));
|
||||||
var stablePath = await taskCompletionSource.Task.ConfigureAwait(false);
|
var stablePath = await taskCompletionSource.Task.ConfigureAwait(false);
|
||||||
|
|
||||||
return cachedStorage = new StableStorage(stablePath, desktopGameHost);
|
return cachedStorage = new StableStorage(stablePath, desktopGameHost);
|
||||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Screens.Select
|
|||||||
public ImportFromStablePopup(Action importFromStable)
|
public ImportFromStablePopup(Action importFromStable)
|
||||||
{
|
{
|
||||||
HeaderText = @"You have no beatmaps!";
|
HeaderText = @"You have no beatmaps!";
|
||||||
BodyText = "An existing copy of osu! was found, though.\nWould you like to import your beatmaps, skins, collections and scores?\nThis will create a second copy of all files on disk.";
|
BodyText = "You can import files from over a stable install, though.\nWould you like to import your beatmaps, skins, collections and scores?\nThis will create a second copy of all files on disk.";
|
||||||
|
|
||||||
Icon = FontAwesome.Solid.Plane;
|
Icon = FontAwesome.Solid.Plane;
|
||||||
|
|
||||||
|
@ -281,8 +281,8 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
Schedule(() =>
|
Schedule(() =>
|
||||||
{
|
{
|
||||||
// if we have no beatmaps but osu-stable is found, let's prompt the user to import.
|
// if we have no beatmaps, let's prompt the user to import from over a stable install if he has one.
|
||||||
if (!beatmaps.GetAllUsableBeatmapSetsEnumerable(IncludedDetails.Minimal).Any() && beatmaps.StableInstallationAvailable)
|
if (!beatmaps.GetAllUsableBeatmapSetsEnumerable(IncludedDetails.Minimal).Any() && stableImportManager.SupportsImportFromStable)
|
||||||
{
|
{
|
||||||
dialogOverlay.Push(new ImportFromStablePopup(() =>
|
dialogOverlay.Push(new ImportFromStablePopup(() =>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user