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:
parent
27ac06e9de
commit
7495bc5d3a
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user