diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-18 07:50:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-18 07:50:58 -0500 |
| commit | 6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8 (patch) | |
| tree | 5a9fc027f35af593fb5c1168bfbeaeec24acdaf3 /src/slskd/Application.cs | |
| parent | 6e77c4f214c9d8a258c1e39c465cc63fc1912850 (diff) | |
| parent | 2c45386bfa4ad1a8a9dd5cf5793ee895ec0aeeaa (diff) | |
| download | slskd-6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8.tar.gz | |
Merge branch 'colors' into feat/config-console-log-colour
Diffstat (limited to 'src/slskd/Application.cs')
| -rw-r--r-- | src/slskd/Application.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index f92b4647..65751553 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -164,7 +164,7 @@ namespace slskd Client.BrowseProgressUpdated += Client_BrowseProgressUpdated; Client.UserStatusChanged += Client_UserStatusChanged; - Client.PrivateMessageReceived += Client_PrivateMessageRecieved; + Client.PrivateMessageReceived += Client_PrivateMessageReceived; Client.PrivateRoomMembershipAdded += (e, room) => Log.Information("Added to private room {Room}", room); Client.PrivateRoomMembershipRemoved += (e, room) => Log.Information("Removed from private room {Room}", room); @@ -863,13 +863,13 @@ namespace slskd // we previously saved a list of all of the download ids that were active at the previous shutdown; fetch the latest // record for those transfers from the db and ensure they haven't been removed from the UI while the application was offline // the user doesn't want those transfers anymore and we don't want to add them back. - var resumeableDownloads = Transfers.Downloads.List(t => !t.Removed && ActiveDownloadIdsAtPreviousShutdown.Contains(t.Id)); + var resumableDownloads = Transfers.Downloads.List(t => !t.Removed && ActiveDownloadIdsAtPreviousShutdown.Contains(t.Id)); - if (resumeableDownloads.Any()) + if (resumableDownloads.Any()) { Log.Information("Attempting to re-enqueue previously active downloads..."); - var groups = resumeableDownloads.GroupBy(d => d.Username); + var groups = resumableDownloads.GroupBy(d => d.Username); // re-request downloads. we use a try/catch here because there's a very good chance that the other user is offline. foreach (var group in groups) @@ -897,7 +897,7 @@ namespace slskd } } - private void Client_PrivateMessageRecieved(object sender, PrivateMessageReceivedEventArgs args) + private void Client_PrivateMessageReceived(object sender, PrivateMessageReceivedEventArgs args) { Messaging.Conversations.HandleMessageAsync(args.Username, PrivateMessage.FromEventArgs(args)); |
