From 299645ed15d7abeb2eaf061af951909b189b6d41 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Fri, 21 Jun 2024 16:48:15 +0100 Subject: [PATCH] Reformat displaying of server type --- Bloxstrap/Resources/Strings.Designer.cs | 9 --------- Bloxstrap/Resources/Strings.resx | 3 --- .../ViewModels/ContextMenu/ServerInformationViewModel.cs | 4 +--- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Bloxstrap/Resources/Strings.Designer.cs b/Bloxstrap/Resources/Strings.Designer.cs index 998250b..cc35677 100644 --- a/Bloxstrap/Resources/Strings.Designer.cs +++ b/Bloxstrap/Resources/Strings.Designer.cs @@ -594,15 +594,6 @@ namespace Bloxstrap.Resources { } } - /// - /// Looks up a localized string similar to {0} server. - /// - public static string ContextMenu_ServerInformation_TypeFormat { - get { - return ResourceManager.GetString("ContextMenu.ServerInformation.TypeFormat", resourceCulture); - } - } - /// /// Looks up a localized string similar to Add FastFlag. /// diff --git a/Bloxstrap/Resources/Strings.resx b/Bloxstrap/Resources/Strings.resx index 2feb7fb..b88f07b 100644 --- a/Bloxstrap/Resources/Strings.resx +++ b/Bloxstrap/Resources/Strings.resx @@ -300,9 +300,6 @@ Click for more information Type - - {0} server - Add FastFlag diff --git a/Bloxstrap/UI/ViewModels/ContextMenu/ServerInformationViewModel.cs b/Bloxstrap/UI/ViewModels/ContextMenu/ServerInformationViewModel.cs index 89b1439..71d50c3 100644 --- a/Bloxstrap/UI/ViewModels/ContextMenu/ServerInformationViewModel.cs +++ b/Bloxstrap/UI/ViewModels/ContextMenu/ServerInformationViewModel.cs @@ -11,9 +11,7 @@ namespace Bloxstrap.UI.ViewModels.ContextMenu private readonly ActivityWatcher _activityWatcher; public string InstanceId => _activityWatcher.ActivityJobId; - public string ServerType => string.Format( - Resources.Strings.ContextMenu_ServerInformation_TypeFormat, - Resources.Strings.ResourceManager.GetStringSafe($"Enums.ServerType.{_activityWatcher.ActivityServerType}")); + public string ServerType => Resources.Strings.ResourceManager.GetStringSafe($"Enums.ServerType.{_activityWatcher.ActivityServerType}"); public string ServerLocation { get; private set; } = Resources.Strings.ContextMenu_ServerInformation_Loading; public ICommand CopyInstanceIdCommand => new RelayCommand(CopyInstanceId);