Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1896


Ignore:
Timestamp:
05/26/09 12:54:36 (16 years ago)
Author:
swagner
Message:

Fixed #648

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure.GUI/ManagerForm.cs

    r1394 r1896  
    748748          List<PluginAction> involvingActions = GetActionsInvolving(tag);
    749749
    750           if(tag.State == PluginState.Upgradeable || (involvingActions.Count > 0 && involvingActions[0].Action == ManagerAction.Remove)) {
     750          if((tag.State == PluginState.Upgradeable) ||
     751             (involvingActions.Count > 0 && involvingActions[0].Action == ManagerAction.Remove && tag.State != PluginState.Available)) {
    751752            tag.Plugin.Files.ForEach(delegate(string filename) {
    752753              File.Delete(filename);
     
    778779          List<PluginAction> actionsInvolving = GetActionsInvolving(tag);
    779780
    780           if(tag.State == PluginState.Upgradeable || (actionsInvolving.Count > 0 && actionsInvolving[0].Action == ManagerAction.Remove)) {
     781          if((tag.State == PluginState.Upgradeable) ||
     782             (actionsInvolving.Count > 0 && actionsInvolving[0].Action == ManagerAction.Remove && tag.State != PluginState.Available)) {
    781783            tag.Plugin.Files.ForEach(delegate(string filename) {
    782784              File.Copy(filename, backupDir + filename.Remove(0, pluginDir.Length));
Note: See TracChangeset for help on using the changeset viewer.