mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08:00
Fix back-to-front logic
This commit is contained in:
parent
80ac8abaa6
commit
3942281d13
@ -122,12 +122,12 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
|
||||
private void updateStatus()
|
||||
{
|
||||
submitButton.Enabled.Value = !string.IsNullOrWhiteSpace(commentsTextBox.Current.Value) || IsCommentRequired(reasonDropdown.Current.Value);
|
||||
submitButton.Enabled.Value = !string.IsNullOrWhiteSpace(commentsTextBox.Current.Value) || !IsCommentRequired(reasonDropdown.Current.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether an additional comment is required for submitting the report with the supplied <paramref name="reason"/>.
|
||||
/// </summary>
|
||||
protected virtual bool IsCommentRequired(TReportReason reason) => false;
|
||||
protected virtual bool IsCommentRequired(TReportReason reason) => true;
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Overlays.Chat
|
||||
Action = report;
|
||||
}
|
||||
|
||||
protected override bool IsCommentRequired(ChatReportReason reason) => reason != ChatReportReason.Other;
|
||||
protected override bool IsCommentRequired(ChatReportReason reason) => reason == ChatReportReason.Other;
|
||||
|
||||
private void report(ChatReportReason reason, string comments)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user