diff --git a/Source/ImGui/Private/ImGuiModuleSettings.cpp b/Source/ImGui/Private/ImGuiModuleSettings.cpp index 5a19e5c..2c78705 100644 --- a/Source/ImGui/Private/ImGuiModuleSettings.cpp +++ b/Source/ImGui/Private/ImGuiModuleSettings.cpp @@ -53,32 +53,6 @@ void UImGuiSettings::PostInitProperties() { Super::PostInitProperties(); - if (SwitchInputModeKey_DEPRECATED.Key.IsValid() && !ToggleInput.Key.IsValid()) - { - const FString ConfigFileName = GetDefaultConfigFilename(); - - // Move value to the new property. - ToggleInput = MoveTemp(SwitchInputModeKey_DEPRECATED); - - // Remove from configuration file entry for obsolete property. - if (FConfigFile* ConfigFile = GConfig->Find(ConfigFileName, false)) - { - if (FConfigSection* Section = ConfigFile->Find(TEXT("/Script/ImGui.ImGuiSettings"))) - { - if (Section->Remove(TEXT("SwitchInputModeKey"))) - { - ConfigFile->Dirty = true; - GConfig->Flush(false, ConfigFileName); - } - } - } - - // Add to configuration file entry for new property. - UpdateSinglePropertyInConfigFile( - UImGuiSettings::StaticClass()->FindPropertyByName(GET_MEMBER_NAME_CHECKED(UImGuiSettings, ToggleInput)), - ConfigFileName); - } - if (IsTemplate()) { DefaultInstance = this; diff --git a/Source/ImGui/Private/ImGuiModuleSettings.h b/Source/ImGui/Private/ImGuiModuleSettings.h index be4c20f..2b31a50 100644 --- a/Source/ImGui/Private/ImGuiModuleSettings.h +++ b/Source/ImGui/Private/ImGuiModuleSettings.h @@ -218,10 +218,6 @@ protected: UPROPERTY(EditAnywhere, config, Category = "DPI Scale", Meta = (ShowOnlyInnerProperties)) FImGuiDPIScaleInfo DPIScale; - // Deprecated name for ToggleInput. Kept temporarily to automatically move old configuration. - UPROPERTY(config) - FImGuiKeyInfo SwitchInputModeKey_DEPRECATED; - static UImGuiSettings* DefaultInstance; friend class FImGuiModuleSettings;