Save new thumbnail positions immediately after they have been moved

This commit is contained in:
Anton Kasyanov
2017-06-17 01:18:56 +03:00
parent 3e79888793
commit 32790c6f26
3 changed files with 13 additions and 1 deletions

View File

@@ -47,6 +47,8 @@ namespace EveOPreview.UI
this._thumbnailManager.ThumbnailsAdded = this.ThumbnailsAdded;
this._thumbnailManager.ThumbnailsUpdated = this.ThumbnailsUpdated;
this._thumbnailManager.ThumbnailsRemoved = this.ThumbnailsRemoved;
this._thumbnailManager.ThumbnailPositionChanged = this.ThumbnailPositionChanged;
this._thumbnailManager.ThumbnailSizeChanged = this.ThumbnailSizeChanged;
}
@@ -207,6 +209,12 @@ namespace EveOPreview.UI
return thumbnailViews;
}
private void ThumbnailPositionChanged(String thumbnailName, String activeClientName, Point location)
{
this._configuration.SetThumbnailLocation(thumbnailName, activeClientName, location);
this._configurationStorage.Save();
}
private void ThumbnailSizeChanged(Size size)
{
this.View.ThumbnailSize = size;