- Timestamp:
- 05/05/10 10:38:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LocalPluginsView.cs
r3608 r3624 101 101 "There was an error while connecting to the server." + Environment.NewLine + 102 102 "Please check your connection settings and user credentials."); 103 } else if (e.Cancelled) {104 StatusView.ShowMessage(NoUpdatesAvailableMessage);105 103 } 106 104 StatusView.RemoveMessage(CheckingPluginsMessage); … … 124 122 if (pluginsToUpdate.Count() > 0) { 125 123 installationManager.Update(pluginsToUpdate); 126 pluginManager.DiscoverAndCheckPlugins(); 127 e.Cancel = false; 128 } else { 129 e.Cancel = true; 130 } 124 } 125 pluginManager.DiscoverAndCheckPlugins(); 131 126 } 132 127 … … 156 151 removeButton.Enabled = localPluginsListView.CheckedItems.Count > 0; 157 152 updateSelectedButton.Enabled = localPluginsListView.CheckedItems.Count > 0; 158 foreach (ColumnHeader column in localPluginsListView.Columns) { 159 if (localPluginsListView.Items.Count > 0) 160 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 161 else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 162 } 153 Util.ResizeColumns(localPluginsListView.Columns.OfType<ColumnHeader>()); 163 154 } 164 155 … … 239 230 removePluginsBackgroundWorker.RunWorkerAsync(checkedPlugins); 240 231 } 232 233 private void refreshButton_Click(object sender, EventArgs e) { 234 StatusView.LockUI(); 235 StatusView.ShowProgressIndicator(); 236 // refresh = update empty list of plugins (plugins are reloaded) 237 updatePluginsBackgroundWorker.RunWorkerAsync(new IPluginDescription[0]); 238 } 241 239 } 242 240 }
Note: See TracChangeset
for help on using the changeset viewer.