Cherrypick fixes
This commit is contained in:
parent
5602dc5089
commit
f797d0bf8d
|
|
@ -5,7 +5,7 @@ using Robust.Client.Graphics;
|
|||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Utility;
|
||||
using Content.Client._Funkystation.NanoChat
|
||||
using Content.Client._Funkystation.NanoChat;
|
||||
|
||||
namespace Content.Client._DV.CartridgeLoader.Cartridges;
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public sealed partial class NanoChatUiFragment : BoxContainer
|
|||
|
||||
_newChatPopup = new(_maxNameLength, _maxIdJobLength);
|
||||
_editChatPopup = new(_maxNameLength, _maxIdJobLength);
|
||||
_createGroupChatPopup = new();
|
||||
_createGroupChatPopup = new(_maxNameLength);
|
||||
_inviteToGroupPopup = new();
|
||||
_groupMembersPopup = new();
|
||||
_emojiPickerPopup = new();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later AND MIT
|
||||
|
||||
using Content.Shared.Access.Components;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
|
|
@ -15,7 +14,7 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow
|
|||
{
|
||||
public event Action<string>? OnGroupCreated;
|
||||
|
||||
public CreateGroupChatPopup()
|
||||
public CreateGroupChatPopup(int maxFullNameLength)
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
|
|
@ -30,8 +29,8 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow
|
|||
|
||||
GroupNameInput.OnTextChanged += args =>
|
||||
{
|
||||
if (args.Text.Length > IdCardConsoleComponent.MaxFullNameLength)
|
||||
GroupNameInput.Text = args.Text[..IdCardConsoleComponent.MaxFullNameLength];
|
||||
if (args.Text.Length > maxFullNameLength)
|
||||
GroupNameInput.Text = args.Text[..maxFullNameLength];
|
||||
ValidateInputs();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue