only paste into input field if you have nomaivr

This commit is contained in:
JohnCorby 2022-09-30 21:47:54 -07:00
parent c6717e3172
commit 17d28ea385

View File

@ -365,8 +365,11 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
ConnectPopup.OnActivateMenu += () =>
{
_connectPopupOpenTime = Time.time;
// ClearInputTextField is called AFTER OnActivateMenu
Delay.RunNextFrame(() => ConnectPopup._inputField.SetTextWithoutNotify(GUIUtility.systemCopyBuffer));
if (QSBCore.Helper.Interaction.ModExists("Raicuparta.NomaiVR"))
{
// ClearInputTextField is called AFTER OnActivateMenu
Delay.RunNextFrame(() => ConnectPopup._inputField.SetTextWithoutNotify(GUIUtility.systemCopyBuffer));
}
};
OneButtonInfoPopup = QSBCore.MenuApi.MakeInfoPopup("", "");