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

Fix editor UI remaining transparent when switching away from compose tab

Could still happen if using the keyboard F-key shortcuts. In that case
the composer becomes non-present, so its `Update()` can't really do
anything.
This commit is contained in:
Bartłomiej Dach 2024-07-11 11:23:09 +02:00
parent fe421edd8f
commit 6801ccbbc5
No known key found for this signature in database

View File

@ -219,7 +219,7 @@ namespace osu.Game.Screens.Edit
/// In "composer focus" mode the opacity of the aforementioned components is reduced so that the user can focus on the composer better.
/// </summary>
/// <remarks>
/// The state of this bindable is controlled by <see cref="HitObjectComposer"/>.
/// The state of this bindable is controlled by <see cref="HitObjectComposer"/> when in <see cref="EditorScreenMode.Compose"/> mode.
/// </remarks>
public Bindable<bool> ComposerFocusMode { get; } = new Bindable<bool>();
@ -1018,6 +1018,9 @@ namespace osu.Game.Screens.Edit
}
finally
{
if (Mode.Value != EditorScreenMode.Compose)
ComposerFocusMode.Value = false;
updateSampleDisabledState();
rebindClipboardBindables();
}