Skip to content

Commit

Permalink
Remove separated message about CoW
Browse files Browse the repository at this point in the history
  • Loading branch information
huoyaoyuan committed Nov 19, 2024
1 parent 32fbcbd commit 9c73972
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,11 @@ public static class FirstRunOverlayImportFromStableScreenStrings
/// </summary>
public static LocalisableString Items(int arg0) => new TranslatableString(getKey(@"items"), @"{0} item(s)", arg0);

/// <summary>
/// "Data migration will use &quot;copy on write&quot;. No extra disk space will be used, and you can delete or modify either data folder at any point without affecting the other installation."
/// </summary>
public static LocalisableString DataMigrationNoExtraSpaceWithCoW => new TranslatableString(getKey(@"data_migration_no_extra_space_cow"), @"Data migration will use ""copy on write"". No extra disk space will be used, and you can delete or modify either data folder at any point without affecting the other installation.");

/// <summary>
/// "Data migration will use &quot;hard links&quot;. No extra disk space will be used, and you can delete either data folder at any point without affecting the other installation."
/// </summary>
public static LocalisableString DataMigrationNoExtraSpace => new TranslatableString(getKey(@"data_migration_no_extra_space"), @"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.");

/// <summary>
/// "Learn more about how &quot;copy on write&quot; work"
/// </summary>
public static LocalisableString LearnMoreAboutCoW => new TranslatableString(getKey(@"learn_about_cow"), @"Learn more about how ""copy on write"" work");

/// <summary>
/// "Learn more about how &quot;hard links&quot; work"
/// </summary>
Expand Down
8 changes: 1 addition & 7 deletions osu.Game/Overlays/FirstRunSetup/ScreenImportFromStable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,7 @@ private void updateStablePath()
hardLinkAvailable = legacyImportManager.CheckSongsFolderHardLinkAvailability();
Logger.Log($"Hard link support for beatmaps is {hardLinkAvailable}");

if (cowAvailable)
{
copyInformation.Text = FirstRunOverlayImportFromStableScreenStrings.DataMigrationNoExtraSpaceWithCoW;
copyInformation.AddText(@" "); // just to ensure correct spacing
copyInformation.AddLink(FirstRunOverlayImportFromStableScreenStrings.LearnMoreAboutCoW, LinkAction.OpenWiki, @"Client/Release_stream/Lazer/File_storage#via-copy-on-write");
}
else if (hardLinkAvailable)
if (cowAvailable || hardLinkAvailable)
{
copyInformation.Text = FirstRunOverlayImportFromStableScreenStrings.DataMigrationNoExtraSpace;
copyInformation.AddText(@" "); // just to ensure correct spacing
Expand Down

0 comments on commit 9c73972

Please sign in to comment.