Skip to content

Commit 04a7042

Browse files
committed
Code review
1 parent 9d5ea90 commit 04a7042

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/Platforms/SecureFolderFS.UI/Helpers/BaseLifecycleHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected virtual IServiceCollection ConfigureServices(IModifiableFolder setting
8383
protected virtual IServiceCollection WithLogging(IServiceCollection serviceCollection)
8484
{
8585
// Configure logging
86-
return ServiceCollection.AddLogging(builder =>
86+
return serviceCollection.AddLogging(builder =>
8787
{
8888
#if DEBUG
8989
builder.SetMinimumLevel(LogLevel.Trace);

src/Platforms/SecureFolderFS.Uno/ValueConverters/ImageToSourceConverter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.IO;
33
using Microsoft.UI.Xaml.Data;
44
using Microsoft.UI.Xaml.Media.Imaging;
5+
using SecureFolderFS.Shared.Extensions;
56
using SecureFolderFS.Shared.Models;
67
using SecureFolderFS.Uno.AppModels;
78

@@ -36,6 +37,7 @@ public sealed class ImageToSourceConverter : IValueConverter
3637
if (stream is null)
3738
return null;
3839

40+
stream.TrySetPositionOrAdvance(0L);
3941
var bitmapImage = new BitmapImage();
4042
var randomAccessStream = stream.AsRandomAccessStream();
4143

src/Platforms/SecureFolderFS.Uno/Views/Vault/VaultOverviewPage.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ private async void VaultOptions_Drop(object sender, DragEventArgs e)
130130
return;
131131

132132
var plaintextItem = await storageRoot.PlaintextRoot.GetItemByRelativePathAsync(plaintextPath);
133-
_ = DisplayInformation();
133+
_ = ShowItemDialogAsync();
134134

135-
async Task DisplayInformation()
135+
async Task ShowItemDialogAsync()
136136
{
137137
var viewModel = new VaultItemInfoOverlayViewModel(ciphertextItem, plaintextItem);
138138
await viewModel.InitAsync();

tests/SecureFolderFS.Tests/CliTests/Commands/VaultInfoCommandTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public async Task VaultInfo_OnExistingVault_ShouldReturnInformation()
3131

3232
// TODO: Assert
3333
// Since Cli currently uses hardcoded SystemFolderEx, we cannot test against MemoryFolderEx
34+
Assert.Pass();
3435
}
3536
}
3637

0 commit comments

Comments
 (0)