Skip to content

Commit 0237cda

Browse files
Added Cancel functionality for adding "Manual Installed" tab entries
1 parent 1a402dc commit 0237cda

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/Menu/ContentForm.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,8 @@ private void buttonManualInstallAdd_Click(object sender, EventArgs e)
14601460
string route = determineUniqueRoute(Path.GetFileName(folderBrowser.SelectedPath));
14611461
dataGridViewManualInstall.CurrentRow.Cells[0].Value = route;
14621462
dataGridViewManualInstall.CurrentRow.Cells[1].Value = folderBrowser.SelectedPath;
1463+
ManualInstallChangesMade = true;
1464+
buttonCancel.Enabled = ManualInstallChangesMade;
14631465
}
14641466
else
14651467
{
@@ -1604,9 +1606,13 @@ private void buttonCancel_Click(object sender, EventArgs e)
16041606
if (MessageBox.Show(message, Catalog.GetString("Attention"), MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
16051607
{
16061608
// not sure, cancel the cancel
1607-
ManualInstallChangesMade = false;
16081609
this.DialogResult = DialogResult.None;
16091610
}
1611+
else
1612+
{
1613+
// sure to cancel the changes
1614+
ManualInstallChangesMade = false;
1615+
}
16101616
}
16111617

16121618
private void buttonOK_Click(object sender, EventArgs e)

0 commit comments

Comments
 (0)