setup: Reset plugin selection after closing window

This commit is contained in:
Hylke Bons 2013-05-27 23:54:02 +01:00
parent 8040d696f9
commit b15ce8716a

View file

@ -257,16 +257,15 @@ namespace SparkleShare {
TableView.DataSource = DataSource;
TableView.ReloadData ();
TableView.SelectRow (Controller.SelectedPluginIndex, false);
TableView.ScrollRowToVisible (Controller.SelectedPluginIndex);
(TableView.Delegate as SparkleTableViewDelegate).SelectionChanged += delegate {
Controller.SelectedPluginChanged (TableView.SelectedRow);
Controller.CheckAddPage (AddressTextField.StringValue, PathTextField.StringValue, TableView.SelectedRow);
};
}
TableView.SelectRow (Controller.SelectedPluginIndex, false);
TableView.ScrollRowToVisible (Controller.SelectedPluginIndex);
HistoryCheckButton = new NSButton () {
Frame = new RectangleF (190, Frame.Height - 400, 300, 18),