separate the concepts of UserDefinedItem being updated in memory vs successful persistence

This commit is contained in:
Robert McRackan 2021-09-02 09:51:17 -04:00
parent 7b9c5c0f4f
commit dc0dd3474b
7 changed files with 46 additions and 159 deletions

View file

@ -32,7 +32,7 @@ namespace LibationWinForms
// independent UI updates
this.Load += (_, __) => RestoreSizeAndLocation();
this.Load += (_, __) => RefreshImportMenu();
UserDefinedItem.ItemChanged += setBackupCounts;
LibraryCommands.BookUserDefinedItemCommitted += setBackupCounts;
var format = System.Drawing.Imaging.ImageFormat.Jpeg;
PictureStorage.SetDefaultImage(PictureSize._80x80, Properties.Resources.default_cover_80x80.ToBytes(format));