|
@@ -29,7 +29,8 @@ namespace Terminal.Gui {
|
|
set {
|
|
set {
|
|
source = value;
|
|
source = value;
|
|
|
|
|
|
- if(isAdded) {
|
|
|
|
|
|
+ // Only need to refresh list if its been added to a container view
|
|
|
|
+ if(SuperView != null && SuperView.Subviews.Contains(this)) {
|
|
Search_Changed ("");
|
|
Search_Changed ("");
|
|
SetNeedsDisplay ();
|
|
SetNeedsDisplay ();
|
|
}
|
|
}
|
|
@@ -66,7 +67,6 @@ namespace Terminal.Gui {
|
|
readonly TextField search;
|
|
readonly TextField search;
|
|
readonly ListView listview;
|
|
readonly ListView listview;
|
|
bool autoHide = true;
|
|
bool autoHide = true;
|
|
- bool isAdded;
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Public constructor
|
|
/// Public constructor
|
|
@@ -163,8 +163,6 @@ namespace Terminal.Gui {
|
|
} else {
|
|
} else {
|
|
search.ColorScheme = Colors.Menu;
|
|
search.ColorScheme = Colors.Menu;
|
|
}
|
|
}
|
|
-
|
|
|
|
- isAdded = true;
|
|
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
|