Don't revert beatmap on exiting leased state

This commit is contained in:
Dean Herbert 2019-02-14 17:14:58 +09:00
parent 813b36e98e
commit 777a606b2d
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public OsuScreenDependencies(bool requireLease, IReadOnlyDependencyContainer par
Beatmap = parent.Get<LeasedBindable<WorkingBeatmap>>()?.GetBoundCopy();
if (Beatmap == null)
{
Cache(Beatmap = parent.Get<Bindable<WorkingBeatmap>>().BeginLease(true));
Cache(Beatmap = parent.Get<Bindable<WorkingBeatmap>>().BeginLease(false));
}
Ruleset = parent.Get<LeasedBindable<RulesetInfo>>()?.GetBoundCopy();
@ -38,4 +38,4 @@ public OsuScreenDependencies(bool requireLease, IReadOnlyDependencyContainer par
}
}
}
}
}