public void toggleConnectionActions(boolean setVisible) {
        if (setVisible) {
            String name = InputHandler.getCurrentServerTab().getTabName();
            disconnectFromServer.setText("Odpojit od " + name);
        }

        joinToChannel.setVisible(setVisible);
        disconnectFromAll.setVisible(setVisible);
        disconnectFromServer.setVisible(setVisible);
    }