private void RefreshScreenshots()
{
_history.AutoSave = false;
// Add to a new stack
var tempStack = new Stack<string> (_history.Count);
while (_history.Count > 0) {
tempStack.Push (_history.Pop ());
}
// Clear cache
_textureDatabase.Clear ();
// Add only existant
var ienum = tempStack.GetEnumerator();
while(ienum.MoveNext()){
var exist = GetTexture (ienum.Current, true);
if (exist != null) {
_history.Push (ienum.Current);
}
}
_history.AutoSave = true;
_history.Save ();
}