Skip to content

Commit

Permalink
Fix Nginx config save bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
oopsdump committed Jan 16, 2017
1 parent 522cdc3 commit 7519b0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wne/UI/ConfigEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ private void SaveOptions()
private void SaveSettings()
{
SavePHPExtOptions();
SaveNginxConfig();

SaveOptions();
SaveEnvironment();
Expand Down Expand Up @@ -341,6 +342,14 @@ private void UpdateNginxConfig()
}
}

private void SaveNginxConfig()
{
foreach (var conf in nginxConfig)
{
File.WriteAllText(conf.Key, conf.Value);
}
}

private void comboBoxNginxSite_SelectedIndexChanged(object sender, EventArgs e)
{
comboBoxNginxSite_TextUpdate(sender, e);
Expand Down

0 comments on commit 7519b0c

Please sign in to comment.