Skip to content

Commit b4ac31a

Browse files
Removed cancel button from the "Auto Installed" tab. On the "Manually Installed" tab pushing the cancel button undoes the changes. However on the "Auto Installed" tab undoing a route installed or undoing updates to a route is not possible or logical.
1 parent ade0195 commit b4ac31a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Source/Menu/ContentForm.Designer.cs

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

Source/Menu/ContentForm.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ public ContentForm(UserSettings settings, string baseDocumentationUrl)
113113
// set focus to datagridview so that arrow keys can be used to scroll thru the list
114114
dataGridViewAutoInstall.Select();
115115

116+
// tab "Auto Installed" does not contain a Cancel button
117+
// it's too difficult and not logical to rollback an "Auto Installed" route
118+
buttonCancel.Hide();
119+
116120
//
117121
// "Manually Installed" tab
118122
//
@@ -138,9 +142,11 @@ private void tabControlContent_Selecting(object sender, TabControlCancelEventArg
138142
{
139143
case "tabPageAutoInstall":
140144
dataGridViewAutoInstall.Select();
145+
buttonCancel.Hide();
141146
break;
142147
case "tabPageManuallyInstall":
143148
dataGridViewManualInstall.Select();
149+
buttonCancel.Show();
144150
break;
145151
}
146152
}

0 commit comments

Comments
 (0)