Public function disappears from OnClick event when adding an argument to it

Not showing in editor when:
public void ServerWindow(bool show, bool isMaster)
{
}

Showing in editor when:
public void ServerWindow(bool show)
{
}

Unity version: 2022.1.6f1
What should i do?

UnityEvents only support functions with one argument. You can do this:

public void ShowServerWindow(bool show) {
  ServerWindow(show, master);
}

Okay, thank you