Permalink
Browse files

- Prevent user from removing items from the list that are downloading or

installing.
  • Loading branch information...
1 parent 76ec571 commit 31757349448e83309be196fc4ab31fd3c76faa3b @philc committed Oct 24, 2006
Showing with 14 additions and 5 deletions.
  1. +1 −0 Changelog.txt
  2. +1 −5 data/applists/testing.xml
  3. +12 −0 src/InstallPad.ContextMenu.cs
View
@@ -1,6 +1,7 @@
0.4
+- Prevent user from removing items from the list that are downloading or installing.
- Massive refactoring of the application item UI. Not scary anymore =)
- Removing preference for "installation root" until we can figure out what to do with it
- UI cleanup for the add application dialog. Now it's sizable
@@ -9,14 +9,10 @@
<Options>
<SilentInstall />
<InstallerArguments>&lt;&gt;^ -/s</InstallerArguments>
- <Checked>false</Checked>
+ <Checked>false</Checked>
</Options>
</Application>
<Application>
- <Name>FireFox</Name>
- <FileUrl>http://ftp-mozilla.netscape.com/pub/mozilla.org/firefox/releases/1.5.0.7/win32/en-US/Firefox%20Setup%201.5.0.7.exe</FileUrl>
- </Application>
- <Application>
<Name>FireFox FTP</Name>
<FileUrl>ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5/win32/en-US/Firefox%20Setup%201.5.exe</FileUrl>
</Application>
@@ -101,6 +101,18 @@ void removeItem_Click(object sender, EventArgs e)
{
ApplicationListItem item = (ApplicationListItem)highlightedControl;
string appTitle = item.ApplicationItem.Name;
+
+ if (item.State==ApplicationListItem.InstallState.Downloading){
+ MessageBox.Show(String.Format("{0} is currently being downloaded. Stop the download before removing the item.",appTitle));
+ return;
+ }
+ else if (item.State == ApplicationListItem.InstallState.Installing)
+ {
+ MessageBox.Show(String.Format("{0} is currently being installed. Stop the download before removing the item.", appTitle));
+ return;
+ }
+
+
DialogResult result = MessageBox.Show(this,
String.Format("Are you sure you want to remove '{0}' from the list of installable applications?", appTitle),
String.Format("Remove {0}?", appTitle),

0 comments on commit 3175734

Please sign in to comment.