Variant 3: cannot change history, cannot reset index (the "default")

This commit is contained in:
Terochi
2022-11-21 09:43:36 +01:00
parent 672e1cd45b
commit 58288275a6
2 changed files with 1 additions and 6 deletions

View File

@ -45,8 +45,6 @@ namespace osu.Game.Graphics.UserInterface
if (selectedIndex == HistoryCount)
originalMessage = Text;
else if (!string.IsNullOrEmpty(Text))
messageHistory[selectedIndex] = Text;
Text = messageHistory[--selectedIndex];
@ -56,9 +54,6 @@ namespace osu.Game.Graphics.UserInterface
if (selectedIndex == HistoryCount)
return true;
if (!string.IsNullOrEmpty(Text))
messageHistory[selectedIndex] = Text;
if (selectedIndex == HistoryCount - 1)
{
selectedIndex = HistoryCount;