mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Fix SkinEditor binding event to external bindable
This commit is contained in:
parent
fd9b890a94
commit
ce68f6adb7
@ -52,6 +52,7 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
private OsuTextFlowContainer headerText = null!;
|
||||
|
||||
private Bindable<Skin> currentSkin = null!;
|
||||
private Bindable<string> clipboardContent = null!;
|
||||
|
||||
[Resolved]
|
||||
private OsuGame? game { get; set; }
|
||||
@ -243,7 +244,8 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
canCopy.Value = canCut.Value = SelectedComponents.Any();
|
||||
}, true);
|
||||
|
||||
clipboard.Content.BindValueChanged(content => canPaste.Value = !string.IsNullOrEmpty(content.NewValue), true);
|
||||
clipboardContent = clipboard.Content.GetBoundCopy();
|
||||
clipboardContent.BindValueChanged(content => canPaste.Value = !string.IsNullOrEmpty(content.NewValue), true);
|
||||
|
||||
Show();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user