Skip to content

Commit 70ebdfb

Browse files
committed
typo, updated default values for settings
1 parent 6a57686 commit 70ebdfb

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

Properties/Settings.Designer.cs

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Properties/Settings.settings

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="PhpVersionSwitcher.Properties" GeneratedClassName="Settings">
33
<Profiles />
44
<Settings>
5-
<Setting Name="PhpDir" Type="System.String" Scope="Application">
6-
<Value Profile="(Default)">C:\Web\Soft\PHP</Value>
7-
</Setting>
85
<Setting Name="HttpServerServiceName" Type="System.String" Scope="Application">
96
<Value Profile="(Default)">Apache2.4</Value>
107
</Setting>
8+
<Setting Name="HttpServerProcessPath" Type="System.String" Scope="Application">
9+
<Value Profile="(Default)">C:\Web\Soft\Nginx\nginx.exe</Value>
10+
</Setting>
1111
<Setting Name="FastCgiAddress" Type="System.String" Scope="Application">
12-
<Value Profile="(Default)" />
12+
<Value Profile="(Default)">127.0.0.1:9000</Value>
1313
</Setting>
14-
<Setting Name="HttpServerProcessPath" Type="System.String" Scope="Application">
15-
<Value Profile="(Default)" />
14+
<Setting Name="PhpDir" Type="System.String" Scope="Application">
15+
<Value Profile="(Default)">C:\Web\Soft\PHP</Value>
1616
</Setting>
1717
</Settings>
1818
</SettingsFile>

app.config

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
</configSections>
88
<applicationSettings>
99
<PhpVersionSwitcher.Properties.Settings>
10-
<setting name="PhpDir" serializeAs="String">
11-
<value>C:\Web\Soft\PHP</value>
12-
</setting>
1310
<setting name="HttpServerServiceName" serializeAs="String">
1411
<value>Apache2.4</value>
1512
</setting>
13+
<setting name="HttpServerProcessPath" serializeAs="String">
14+
<value>C:\Web\Soft\Nginx\nginx.exe</value>
15+
</setting>
1616
<setting name="FastCgiAddress" serializeAs="String">
17-
<value />
17+
<value>127.0.0.1:9000</value>
1818
</setting>
19-
<setting name="HttpServerProcessPath" serializeAs="String">
20-
<value />
19+
<setting name="PhpDir" serializeAs="String">
20+
<value>C:\Web\Soft\PHP</value>
2121
</setting>
2222
</PhpVersionSwitcher.Properties.Settings>
2323
</applicationSettings>

src/app/ProcessManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public Task Start()
3030
{
3131
try
3232
{
33-
Process.Start(new ProcessStartInfo()
33+
Process.Start(new ProcessStartInfo
3434
{
3535
WorkingDirectory = this.WorkingDirectory,
3636
FileName = this.FileName,

src/ui/MainForm.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public MainForm()
2929
{
3030
this.processManagers.Add(new ProcessManager(Settings.Default.HttpServerProcessPath));
3131
}
32-
32+
3333
if (Settings.Default.FastCgiAddress.Trim().Length > 0)
3434
{
3535
this.processManagers.Add(new ProcessManager(Settings.Default.PhpDir + "\\active\\php-cgi.exe", "-b " + Settings.Default.FastCgiAddress));

0 commit comments

Comments
 (0)