1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Variant 2: edit changes history, cannot reset index (similar to stable)

This commit is contained in:
Terochi 2022-11-21 09:38:33 +01:00
parent 8f942f130b
commit 672e1cd45b
2 changed files with 1 additions and 7 deletions

View File

@ -101,7 +101,7 @@ namespace osu.Game.Tests.Visual.UserInterface
AddStep("Remove text", () => box.Text = string.Empty);
AddStep("Move Up", () => InputManager.Key(Key.Up));
AddAssert("Same as previous message", () => box.Text == "Message 2");
AddAssert("Text unchanged", () => box.Text == string.Empty);
}
private void addMessages(int count)

View File

@ -33,12 +33,6 @@ namespace osu.Game.Graphics.UserInterface
public HistoryTextBox(int capacity = 100)
{
messageHistory = new LimitedCapacityQueue<string>(capacity);
Current.ValueChanged += text =>
{
if (string.IsNullOrEmpty(text.NewValue))
selectedIndex = HistoryCount;
};
}
protected override bool OnKeyDown(KeyDownEvent e)