mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +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 OsuTextFlowContainer headerText = null!;
|
||||||
|
|
||||||
private Bindable<Skin> currentSkin = null!;
|
private Bindable<Skin> currentSkin = null!;
|
||||||
|
private Bindable<string> clipboardContent = null!;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuGame? game { get; set; }
|
private OsuGame? game { get; set; }
|
||||||
@ -243,7 +244,8 @@ namespace osu.Game.Overlays.SkinEditor
|
|||||||
canCopy.Value = canCut.Value = SelectedComponents.Any();
|
canCopy.Value = canCut.Value = SelectedComponents.Any();
|
||||||
}, true);
|
}, 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();
|
Show();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user