Typos and formatting

This commit is contained in:
Michael Bucari-Tovo 2023-01-07 18:41:34 -07:00
parent cab8555ab5
commit 3a48479435
7 changed files with 92 additions and 93 deletions

View File

@ -357,7 +357,7 @@ namespace AppScaffolding
public static UpgradeProperties GetLatestRelease() public static UpgradeProperties GetLatestRelease()
{ {
// timed out // timed out
(var latest, var zip) = getLatestRelease(TimeSpan.FromSeconds(10000)); (var latest, var zip) = getLatestRelease(TimeSpan.FromSeconds(10));
if (latest is null || zip is null) if (latest is null || zip is null)
return null; return null;

View File

@ -81,7 +81,8 @@ namespace FileLiberator
LibraryBookDto = LibraryBook.ToDto(); LibraryBookDto = LibraryBook.ToDto();
cancellation = Configuration.Instance cancellation =
Configuration.Instance
.ObservePropertyChanged<long>( .ObservePropertyChanged<long>(
nameof(Configuration.DownloadSpeedLimit), nameof(Configuration.DownloadSpeedLimit),
newVal => DownloadSpeedChanged?.Invoke(this, newVal)); newVal => DownloadSpeedChanged?.Invoke(this, newVal));

View File

@ -5,7 +5,6 @@ using Dinah.Core;
using LibationFileManager; using LibationFileManager;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel;
using System.Linq; using System.Linq;
namespace LibationAvalonia.Views namespace LibationAvalonia.Views
@ -14,7 +13,6 @@ namespace LibationAvalonia.Views
public partial class MainWindow public partial class MainWindow
{ {
private InterruptableTimer autoScanTimer; private InterruptableTimer autoScanTimer;
private IDisposable cancellation;
private void Configure_ScanAuto() private void Configure_ScanAuto()
{ {

View File

@ -7,7 +7,7 @@ namespace LibationFileManager
/* /*
* Use this type in the getter for any Dictionary<TKey, TValue> settings, * Use this type in the getter for any Dictionary<TKey, TValue> settings,
* and be sure to clone it before returning. This allows Configuration to * and be sure to clone it before returning. This allows Configuration to
* accurately detect if an of the Dictionary's elements have changed. * accurately detect if any of the Dictionary's elements have changed.
*/ */
private class EquatableDictionary<TKey, TValue> : Dictionary<TKey, TValue> private class EquatableDictionary<TKey, TValue> : Dictionary<TKey, TValue>
{ {