From ef9c66443b57cc00bedc63969c6ab8f384b6b1d3 Mon Sep 17 00:00:00 2001 From: aubergine10 Date: Mon, 7 Feb 2022 00:27:43 +0000 Subject: [PATCH] Rename `OptionsKeybindsTab` -> `KeybindsTab` Phase 1 refactor as per #1356 There will be separate PR for each of the other tabs. Note how little code this rename touched - very well organised tab! --- TLM/TLM/State/Options.cs | 2 +- .../State/OptionsTabs/{OptionsKeybindsTab.cs => KeybindsTab.cs} | 2 +- TLM/TLM/TLM.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename TLM/TLM/State/OptionsTabs/{OptionsKeybindsTab.cs => KeybindsTab.cs} (93%) diff --git a/TLM/TLM/State/Options.cs b/TLM/TLM/State/Options.cs index ec2b5fa2d..f27f9afd0 100644 --- a/TLM/TLM/State/Options.cs +++ b/TLM/TLM/State/Options.cs @@ -163,7 +163,7 @@ public static void MakeSettings(UIHelper helper) { OptionsVehicleRestrictionsTab.MakeSettings_VehicleRestrictions(tabStrip); OptionsOverlaysTab.MakeSettings_Overlays(tabStrip); OptionsMaintenanceTab.MakeSettings_Maintenance(tabStrip); - OptionsKeybindsTab.MakeSettings_Keybinds(tabStrip); + KeybindsTab.MakeSettings_Keybinds(tabStrip); tabStrip.Invalidate(); } catch (Exception ex) { ex.LogException(); diff --git a/TLM/TLM/State/OptionsTabs/OptionsKeybindsTab.cs b/TLM/TLM/State/OptionsTabs/KeybindsTab.cs similarity index 93% rename from TLM/TLM/State/OptionsTabs/OptionsKeybindsTab.cs rename to TLM/TLM/State/OptionsTabs/KeybindsTab.cs index 5c04f2ca6..041ce7dba 100644 --- a/TLM/TLM/State/OptionsTabs/OptionsKeybindsTab.cs +++ b/TLM/TLM/State/OptionsTabs/KeybindsTab.cs @@ -5,7 +5,7 @@ namespace TrafficManager.State { using TrafficManager.UI.Helpers; using TrafficManager.UI; - public static class OptionsKeybindsTab { + public static class KeybindsTab { internal static void MakeSettings_Keybinds(ExtUITabstrip tabStrip) { string keybindsTabText = Translation.Options.Get("Tab:Keybinds"); UIHelper panelHelper = tabStrip.AddTabPage(keybindsTabText, false); diff --git a/TLM/TLM/TLM.csproj b/TLM/TLM/TLM.csproj index 1c31722da..4f6b46643 100644 --- a/TLM/TLM/TLM.csproj +++ b/TLM/TLM/TLM.csproj @@ -300,7 +300,7 @@ - +