1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:42:54 +08:00

Post merge and inverted condition fix

This commit is contained in:
naoey 2019-06-12 00:41:17 +05:30
parent 27ac06e9de
commit 7495bc5d3a
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60
2 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace osu.Game.Online
/// </summary>
public abstract class DownloadTrackingComposite<TModel, TModelManager> : CompositeDrawable
where TModel : class, IEquatable<TModel>
where TModelManager : class, IDownloadModelManager<TModel>
where TModelManager : class, IModelDownloader<TModel>
{
public readonly Bindable<TModel> ModelInfo = new Bindable<TModel>();
@ -127,7 +127,7 @@ namespace osu.Game.Online
private void setDownloadStateFromManager(TModel s, DownloadState state) => Schedule(() =>
{
if (s.Equals(ModelInfo.Value))
if (!s.Equals(ModelInfo.Value))
return;
State.Value = state;

View File

@ -1,4 +1,7 @@
using osu.Framework.Bindables;
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
using osu.Game.Online;