Skip to content

Commit 100162a

Browse files
committed
- Improved auto-detection algorithm for CS-Script and CS-Syntaxer
1 parent 947a723 commit 100162a

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

src/CSScriptNpp/Dialogs/ConfigForm.Designer.cs

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CSScriptNpp/Dialogs/ConfigForm.cs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,15 @@ static void InstallDependencies(bool engineOnly = false)
178178

179179
void deploySyntaxer_Click(object sender, EventArgs e) => InstallDependencies(engineOnly: false);
180180

181-
void autodetect_Click(object sender, EventArgs e)
181+
void autodetectCSS_Click(object sender, EventArgs e)
182182
{
183-
if (CSScriptHelper.IsCSScriptInstalled && CSScriptHelper.IsCSSyntaxerInstalled)
184-
{
183+
if (CSScriptHelper.IsCSScriptInstalled)
185184
customEngineLocation.Text = CSScriptHelper.SystemCSScriptDir.PathJoin("cscs.dll");
185+
186+
if (CSScriptHelper.IsCSSyntaxerInstalled)
186187
customSyntaxerExe.Text = CSScriptHelper.SystemCSSyntaxerDir.PathJoin("syntaxer.dll");
187-
}
188-
else
188+
189+
if (!CSScriptHelper.IsCSScriptInstalled || !CSScriptHelper.IsCSSyntaxerInstalled)
189190
{
190191
string error = "The following dependencies could not be found:\n\n";
191192
if (!CSScriptHelper.IsCSScriptInstalled)
@@ -223,5 +224,13 @@ void embeddedEngine_CheckedChanged(object sender, EventArgs e)
223224
if (customLocationBtn.Checked == embeddedEngine.Checked)
224225
customLocationBtn.Checked = !embeddedEngine.Checked;
225226
}
227+
228+
void autodetectSyntaxer_Click(object sender, EventArgs e)
229+
{
230+
}
231+
232+
private void customEngineLocation_TextChanged(object sender, EventArgs e)
233+
{
234+
}
226235
}
227236
}

0 commit comments

Comments
 (0)