mirror of
https://github.com/4sval/FModel.git
synced 2026-04-08 01:56:16 -05:00
better
This commit is contained in:
parent
664ddfcb7f
commit
32da5d409b
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user