Cleaning up warning

This commit is contained in:
2023-09-05 21:22:30 +02:00
parent ecfd0d1b93
commit e6fd8d4ab5
34 changed files with 119 additions and 183 deletions

View File

@@ -15,13 +15,13 @@ public partial class RootDriveInfo
[Notify] private string? _label;
[Notify] private long _size = 0;
[Notify] private long _size;
[Notify] private long _free = 0;
[Notify] private long _free;
[Notify] private long _used = 0;
[Notify] private long _used;
[Notify] public long UsedPercentage => Size == 0 ? 0 : Used * 100 / Size;
public long UsedPercentage => Size == 0 ? 0 : Used * 100 / Size;
public FullName Path { get; }

View File

@@ -298,7 +298,9 @@ public sealed partial class LocalContentProvider : ContentProviderBase, ILocalCo
var lockObj = new object();
var loadingIndicatorCancellation = new CancellationTokenSource();
#pragma warning disable CS4014
Task.Run(async () => await DelayedLoadingIndicator());
#pragma warning restore CS4014
await LoadChildrenInternal();
lock (lockObj)

View File

@@ -4,7 +4,7 @@ public class AdminElevationConfiguration
{
public const string SectionName = "AdminElevation";
public string? ServerExecutablePath { get; set; }
public string LinuxElevationTool { get; set; }
public string LinuxElevationTool { get; set; } = null!;
public int? ServerPort { get; set; }
public bool? StartProcess { get; set; }
}