This commit is contained in:
iAmAsval 2021-09-06 18:39:40 +02:00
parent 664ddfcb7f
commit 32da5d409b
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,7 @@ namespace FModel.ViewModels
if (e.PropertyName != "Key" || sender is not FullyObservableCollection<FileItem> collection)
return;
var key = collection[e.CollectionIndex].Key = FixKey(collection[e.CollectionIndex].Key);
var key = FixKey(collection[e.CollectionIndex].Key);
if (e.CollectionIndex == 0)
{
if (!HasChange)

View File

@ -218,7 +218,8 @@ namespace FModel.ViewModels
{
cancellationToken.ThrowIfCancellationRequested(); // cancel if needed
var k = key.Key.Length == 66 ? key.Key.Trim() : Constants.ZERO_64_CHAR;
var k = key.Key.Trim();
if (k.Length != 66) k = Constants.ZERO_64_CHAR;
Provider.SubmitKey(key.Guid, new FAesKey(k));
}