From c800d07983dbddd1e681011e69a54e9c66cb28dc Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 21 Sep 2017 10:11:47 +0100 Subject: [PATCH] Projucer: Changed the method for setting the Windows Target Platform option in the VS exporters to a text box --- .../Source/Project Saving/jucer_ProjectExport_MSVC.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index eff6772e31..350e46440a 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -80,12 +80,10 @@ public: void addWindowsTargetPlatformProperties (PropertyListBuilder& props) { - static const char* targetPlatformNames[] = { "(default)", "8.1", "10.0.10240.0", "10.0.10586.0", "10.0.14393.0", "10.0.15063.0" }; - static const var targetPlatforms[] = { var(), "8.1", "10.0.10240.0", "10.0.10586.0", "10.0.14393.0", "10.0.15063.0" }; + if (getWindowsTargetPlatformVersionValue() == Value()) + getWindowsTargetPlatformVersionValue() = getDefaultWindowsTargetPlatformVersion(); - props.add (new ChoicePropertyComponent (getWindowsTargetPlatformVersionValue(), "Windows Target Platform", - StringArray (targetPlatformNames, numElementsInArray (targetPlatformNames)), - Array (targetPlatforms, numElementsInArray (targetPlatforms))), + props.add (new TextPropertyComponent (getWindowsTargetPlatformVersionValue(), "Windows Target Platform", 20, false), "Specifies the version of the Windows SDK that will be used when building this project. " "The default value for this exporter is " + getDefaultWindowsTargetPlatformVersion()); }