mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09: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()
|
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>
|
/// <summary>
|
||||||
/// Determines whether an additional comment is required for submitting the report with the supplied <paramref name="reason"/>.
|
/// Determines whether an additional comment is required for submitting the report with the supplied <paramref name="reason"/>.
|
||||||
/// </summary>
|
/// </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;
|
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)
|
private void report(ChatReportReason reason, string comments)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user