docs: def _on_ok_button_clicked(self, *args):
          """OK button clicked: Applies the configurations and closes the window
          """
          if self.core_config_model.preliminary_config or self.gui_config_model.preliminary_config:
              self._on_apply_button_clicked()
          self.__destroy()