def METHOD_NAME(self):
    if self._console_type == "telnet":
        self._consoles = copy.copy(PRECONFIGURED_TELNET_CONSOLE_COMMANDS)
        self._consoles.update(self._settings[self._console_type])
    elif self._console_type == "vnc":
        self._consoles = copy.copy(PRECONFIGURED_VNC_CONSOLE_COMMANDS)
        self._consoles.update(self._settings[self._console_type])
    elif self._console_type == "spice":
        self._consoles = copy.copy(PRECONFIGURED_SPICE_CONSOLE_COMMANDS)
        self._consoles.update(self._settings[self._console_type])
    self.uiCommandComboBox.clear()
    self.uiCommandComboBox.addItem("Custom", "")
    for name, cmd in sorted(self._consoles.items(), key=(lambda item: item[0].lower())):
        self.uiCommandComboBox.addItem(name, cmd)
    if self._current:
        self.uiCommandPlainTextEdit.setPlainText(self._current)
    else:
        self.uiCommandComboBox.setCurrentIndex(1)