def ReloadSettings(self): settings = QSettings() settings.beginGroup(self.SETTINGS_GROUP) self.audio_type = int(settings.value("audio_type", 0)) self.username = unicode(settings.value("username", "")) self.password = unicode(settings.value("password", ""))
def showEvent(self, event): # Load the settings settings = QSettings() settings.beginGroup(DigitallyImportedServiceBase.SETTINGS_GROUP) self.type.setCurrentIndex(int(settings.value("audio_type", 0))) self.username.setText(settings.value("username", "")) self.password.setText(settings.value("password", ""))
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("scuploader") settings.setValue("url-address", self.settingsDialog.group_url.input_address.text) settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("shell") self.commandFormat = settings.value("command", "") self.outputIsUrl = settings.value("copyOutput", str(False)) == "True" settings.endGroup() settings.endGroup()
def saveSettings(self): self.zapier_url = self.settingsDialog.group_url.widget_url.input_url.text settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("zapier") settings.setValue("url", self.zapier_url) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("shell") settings.setValue("command", self.settingsDialog.group_shell.input_command.text) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("puush") settings.setValue("apiKey", self.settingsDialog.group_puush.input_api_key.text) settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("file") self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S") self.folder = settings.value("folder", "") settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup('uploaders') settings.beginGroup('paste') self.remote_url = settings.value('url', '') self.copy_link = settings.value('copy-link', 'True') == 'True' settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("uguu.se") self.nameFormat = settings.value("name-format", "screenshot-%H-%M-%S") self.copyLink = settings.value("copy-link", "true") in ["true", True] settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("shell") settings.setValue("command", self.commandFormat) settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("shell") self.commandFormat = settings.value("command", "") settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("scuploader") self.url_address = settings.value("url-address", "http://s.876974.ru/upload") settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("zapier") self.zapier_url = settings.value("url", "") settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("puush") self.apiKey = settings.value("apiKey", "") self.outputIsUrl = True settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("shell") self.commandFormat = settings.value("command", "") self.outputIsUrl = settings.value("copyOutput",str(False)) == "True" settings.endGroup() settings.endGroup()
def startAuthenticationProcess(self): if self.settingsDialog.group_account.input_url.text and self.settingsDialog.group_account.input_username.text and self.settingsDialog.group_account.input_password.text: self.saveSettings() self.loadSettings() if match(self.url, "URI"): try: request = requests.get(self.url, timeout=3); if request.status_code == 200: oc = owncloud.Client(self.url) oc.login(self.username, self.password) self.connectStatus = "true" self.saveSettings() self.updateUi() except requests.exceptions.RequestException as e: QMessageBox.critical(self.settingsDialog, "OwnCloud Connection Error", "The specified Server URL is invalid!") settings = QSettings() settings.remove("connect-status") self.saveSettings() self.updateUi() except Exception as e: errorMessage = self.formatConnectionError(e.message) if errorMessage == "401": self.settingsDialog.group_connection.widget_status.label_status.setText("Invalid") else: QMessageBox.critical(self.settingsDialog, "OwnCloud Connection Error", errorMessage) else: QMessageBox.critical(self.settingsDialog, "OwnCloud Connection Error", "The specified Server URL is invalid!") else: missingFields = "" fieldText = "field" if not self.settingsDialog.group_account.input_url.text: missingFields = "\"Server URL\"" if not self.settingsDialog.group_account.input_username.text: if missingFields == "": missingFields = "\"Username\"" else: missingFields = missingFields + " and \"Username\"" fieldText = "fields" if not self.settingsDialog.group_account.input_password.text: if missingFields == "": missingFields = "\"Password\"" else: missingFields = missingFields.replace(" and", ",") + " and \"Password\"" fieldText = "fields" QMessageBox.critical(self.settingsDialog, "OwnCloud Connection Error", "The " + missingFields + " " + fieldText + " must be filled in!")
def Logout(self): Settings = QSettings() Settings.beginGroup("uploaders") Settings.beginGroup("cloudup") Settings.remove("token") Settings.endGroup() Settings.endGroup() self.loadSettings() self.updateUi() QMessageBox.information(self.settingsDialog, "Success!", "You have successfully signed out of your Cloudup account.")
def accept(self): # Save the settings settings = QSettings() settings.beginGroup(DigitallyImportedServiceBase.SETTINGS_GROUP) settings.setValue("audio_type", self.type.currentIndex) settings.setValue("username", self.username.text) settings.setValue("password", self.password.text) QDialog.done(self, QDialog.Accepted)
def logOut(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("imgur") settings.remove("access-token") settings.remove("refresh-token") settings.remove("username") settings.setValue("anonymous", "true") settings.endGroup() settings.endGroup() self.loadSettings() self.updateUi()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("imgur") settings.setValue("anonymous", self.settingsDialog.group_account.radio_anon.checked) settings.setValue("copy-link", not self.settingsDialog.group_clipboard.radio_dontcopy.checked) settings.setValue("copy-direct-link", self.settingsDialog.group_clipboard.radio_directlink.checked) settings.setValue("access-token", self.access_token) settings.setValue("refresh-token", self.refresh_token) settings.setValue("name-format", self.settingsDialog.group_name.input_name.text) settings.setValue("username", self.username) settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("sftp") self.host = settings.value("host", "") self.port = int(settings.value("port", 21)) self.username = settings.value("username", "") self.password = settings.value("password", "") self.keyfile = settings.value("keyfile", "") self.passphrase = settings.value("passphrase", "") self.url = settings.value("url", "") self.folder = settings.value("folder", "") self.nameFormat = settings.value("name-format", "Screenshot at %y-%m-%d") self.authMethod = settings.value("auth-method", "Password") settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("file") settings.setValue("name-format", self.settingsDialog.group_name.input_name.text) settings.setValue("folder", self.settingsDialog.group_location.input_folder.text) settings.endGroup() settings.endGroup()
def getScreenshotFormat(): settings = QSettings() settings.beginGroup("main") format = settings.value("format", "png") settings.endGroup() return format
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("dropbox") self.access_token = settings.value("access-token", "") self.user_id = settings.value("user-id", "") self.display_name = settings.value("display-name", "") self.copy_link = settings.value("copy-link", "true") in ['true', True] self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S") settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("yascp") self.type = settings.value("type", "SFTP") self.username = settings.value("username", "") self.password = settings.value("password", "") self.host = settings.value("host", "") if self.type == "FTP": port = 21 elif self.type == "SFTP": port = 22 self.port = int(settings.value("port", port)) self.url = settings.value("url", "") self.path = settings.value("path", "") settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("nextcloud") self.url = settings.value("url", "") self.username = settings.value("username", "") self.password = settings.value("password", "") self.remotePath = settings.value("remote-path", "") self.connectStatus = settings.value("connect-status", "") self.nameFormat = settings.value("name-format", "Screenshot at %H:%M:%S") self.copyLink = settings.value("copy-link", "true") in ['true', True] self.copyDirectLink = settings.value("copy-direct-link", "false") in ['true', True] settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("sftp") self.host = settings.value("host", "") self.port = int(settings.value("port", 22)) self.username = settings.value("username", "") self.password = settings.value("password", "") self.keyfile = settings.value("keyfile", "") self.passphrase = settings.value("passphrase", "") self.url = settings.value("url", "") self.folder = settings.value("folder", "") self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S") self.authMethod = settings.value("auth-method", "Password") settings.endGroup() settings.endGroup()
def save_session(self, **save_session_kwargs): """Save the current session. IMPORTANT: This implementation should only be used for debugging. For real applications, the Session object should be subclassed and both save_session() and load_session() should be overwritten using the client system's correct mechanism (keychain, database, etc.). Remember, the access_token should be treated the same as a password. Args: save_session_kwargs (dicr): To be used by implementation of save_session, however save_session wants to use them. The default implementation (this one) takes a relative or absolute file path for pickle save location, under the name "path" """ settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("onedrive") settings.beginGroup("session") settings.setValue("token-type", self.token_type) settings.setValue("expires-in", int(float(self._expires_at - time()))) settings.setValue("scope", " ".join(self.scope)) settings.setValue("access-token", self.access_token) settings.setValue("client-id", self.client_id) settings.setValue("auth-server-url", self.auth_server_url) settings.setValue("redirect-uri", self.redirect_uri) settings.setValue("refresh-token", self.refresh_token) settings.setValue("client-secret", self.client_secret) settings.endGroup() settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("owncloud") self.url = settings.value("url", "") self.username = settings.value("username", "") self.password = settings.value("password", "") self.remotePath = settings.value("remote-path", "") self.connectStatus = settings.value("connect-status", "") self.nameFormat = settings.value("name-format", "Screenshot at %H:%M:%S") self.copyLink = settings.value("copy-link", "true") in ['true', True] self.copyDirectLink = settings.value("copy-direct-link", "false") in ['true', True] settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("ftp") settings.setValue("host", self.settingsDialog.group_server.input_host.text) settings.setValue("port", int(self.settingsDialog.group_server.input_port.value)) settings.setValue("username", self.settingsDialog.group_server.input_username.text) settings.setValue("password", self.settingsDialog.group_server.input_password.text) settings.setValue("url", self.settingsDialog.group_server.input_url.text) settings.setValue("folder", self.settingsDialog.group_location.input_folder.text) settings.setValue("name-format", self.settingsDialog.group_location.input_name.text) settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("ftp") self.host = settings.value("host", "") self.port = int(settings.value("port", 21)) self.username = settings.value("username", "") self.password = settings.value("password", "") self.url = settings.value("url", "") self.folder = settings.value("folder", "") self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S") settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("imgur") self.uploadAnon = settings.value("anonymous", "true") in ['true', True] self.copyLink = settings.value("copy-link", "true") in ['true', True] self.copyDirectLink = settings.value("copy-direct-link", "false") in ['true', True] self.access_token = settings.value("access-token", "") self.refresh_token = settings.value("refresh-token", "") self.nameFormat = settings.value("name-format", "Screenshot at %H:%M:%S") self.username = settings.value("username", "") settings.endGroup() settings.endGroup() if self.uploadAnon: self.imgur = pyimgur.Imgur("7163c05b94dcf99") else: self.imgur = pyimgur.Imgur( "7163c05b94dcf99", "5132015d173997bbb52e1d9e093d882abed8d9f1", self.access_token, self.refresh_token)
def startAuthenticationProcess(self): if self.settingsDialog.group_account.input_url.text and self.settingsDialog.group_account.input_username.text and self.settingsDialog.group_account.input_password.text: self.saveSettings() self.loadSettings() if match(self.url, "URI"): try: request = requests.get(self.url, timeout=3) if request.status_code == 200: oc = nextcloud.Client(self.url) oc.login(self.username, self.password) self.connectStatus = "true" self.saveSettings() self.updateUi() except requests.exceptions.RequestException as e: QMessageBox.critical( self.settingsDialog, "NextCloud Connection Error", "The specified Server URL is invalid!") settings = QSettings() settings.remove("connect-status") self.saveSettings() self.updateUi() except Exception as e: errorMessage = self.formatConnectionError(e.message) if errorMessage == "401": self.settingsDialog.group_connection.widget_status.label_status.setText( "Invalid") else: QMessageBox.critical(self.settingsDialog, "NextCloud Connection Error", errorMessage) else: QMessageBox.critical(self.settingsDialog, "NextCloud Connection Error", "The specified Server URL is invalid!") else: missingFields = "" fieldText = "field" if not self.settingsDialog.group_account.input_url.text: missingFields = "\"Server URL\"" if not self.settingsDialog.group_account.input_username.text: if missingFields == "": missingFields = "\"Username\"" else: missingFields = missingFields + " and \"Username\"" fieldText = "fields" if not self.settingsDialog.group_account.input_password.text: if missingFields == "": missingFields = "\"Password\"" else: missingFields = missingFields.replace( " and", ",") + " and \"Password\"" fieldText = "fields" QMessageBox.critical( self.settingsDialog, "NextCloud Connection Error", "The " + missingFields + " " + fieldText + " must be filled in!")
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("imgur") settings.setValue("anonymous", self.settingsDialog.group_account.radio_anon.checked) settings.setValue( "copy-link", not self.settingsDialog.group_clipboard.radio_dontcopy.checked) settings.setValue( "copy-direct-link", self.settingsDialog.group_clipboard.radio_directlink.checked) settings.setValue("access-token", self.access_token) settings.setValue("refresh-token", self.refresh_token) settings.setValue("name-format", self.settingsDialog.group_name.input_name.text) settings.setValue("username", self.username) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("owncloud") settings.setValue("url", self.settingsDialog.group_account.input_url.text) settings.setValue("username", self.settingsDialog.group_account.input_username.text) settings.setValue("password", self.settingsDialog.group_account.input_password.text) settings.setValue("remote-path", self.settingsDialog.group_name.input_path.text) settings.setValue("connect-status", self.connectStatus) settings.setValue("name-format", self.settingsDialog.group_name.input_name.text) settings.setValue("copy-link", not self.settingsDialog.group_clipboard.radio_dontcopy.checked) settings.setValue("copy-direct-link", self.settingsDialog.group_clipboard.radio_directlink.checked) settings.endGroup() settings.endGroup()
def load_session(**load_session_kwargs): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("onedrive") settings.beginGroup("session") token_type = settings.value("token-type", None) expires_in = settings.value("expires-in", None) scope = settings.value("scope", None) access_token = settings.value("access-token", None) client_id = settings.value("client-id", None) auth_server_url = settings.value("auth-server-url", None) redirect_uri = settings.value("redirect-uri", None) refresh_token = settings.value("refresh-token", None) client_secret = settings.value("client-secret", None) settings.endGroup() settings.endGroup() settings.endGroup() return QSettingsSession(token_type, expires_in, scope, access_token, client_id, auth_server_url, redirect_uri, refresh_token=refresh_token, client_secret=client_secret)
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("yascp") settings.setValue("type", self.settingsDialog.group_server.combo_type.currentText) settings.setValue("username", self.settingsDialog.group_server.input_username.text) settings.setValue("password", self.settingsDialog.group_server.input_password.text) settings.setValue("host", self.settingsDialog.group_server.input_host.text) settings.setValue("port", self.settingsDialog.group_server.input_port.text) settings.setValue("url", self.settingsDialog.group_upload.input_url.text) settings.setValue("path", self.settingsDialog.group_upload.input_path.text) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("uguu.se") settings.setValue("name-format", self.settingsDialog.group_name.input_name.text) settings.setValue( "copy-link", self.settingsDialog.group_clipboard.checkbox_copy_link.checked) settings.endGroup() settings.endGroup()
def logout(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("onedrive") settings.beginGroup("session") settings.remove("") settings.endGroup() settings.endGroup() settings.endGroup() self.loggedIn = False self.loadSettings() self.updateUi()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("nextcloud") settings.setValue("url", self.settingsDialog.group_account.input_url.text) settings.setValue( "username", self.settingsDialog.group_account.input_username.text) settings.setValue( "password", self.settingsDialog.group_account.input_password.text) settings.setValue("remote-path", self.settingsDialog.group_name.input_path.text) settings.setValue("connect-status", self.connectStatus) settings.setValue("name-format", self.settingsDialog.group_name.input_name.text) settings.setValue( "copy-link", not self.settingsDialog.group_clipboard.radio_dontcopy.checked) settings.setValue( "copy-direct-link", self.settingsDialog.group_clipboard.radio_directlink.checked) settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("onedrive") self.displayName = settings.value("display-name", "") self.copyLink = settings.value("copy-link", "true") in ['true', True] self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S") settings.endGroup() settings.endGroup()
def logout(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("dropbox") settings.remove("access-token") settings.remove("user-id") settings.remove("display-name") settings.endGroup() settings.endGroup() self.loadSettings() self.updateUi()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("onedrive") settings.setValue("display-name", self.displayName) settings.setValue( "copy-link", self.settingsDialog.group_clipboard.radio_publiclink.checked) settings.setValue("name-format", self.settingsDialog.group_name.input_nameFormat.text) settings.endGroup() settings.endGroup() self.client.auth_provider.save_session()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("dropbox") settings.setValue("access-token", self.access_token) settings.setValue("user-id", self.user_id) settings.setValue("display-name", self.display_name) settings.setValue("copy-link", self.settingsDialog.group_clipboard.radio_publiclink.checked) settings.setValue("name-format", self.settingsDialog.group_name.input_nameFormat.text) settings.endGroup() settings.endGroup()
def loadSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("imgur") self.uploadAnon = settings.value("anonymous", "true") in ['true'] self.copyLink = settings.value("copy-link", "true") in ['true'] self.copyDirectLink = settings.value("copy-direct-link", "false") in ['true'] self.access_token = settings.value("access-token", "") self.refresh_token = settings.value("refresh-token", "") self.nameFormat = settings.value("name-format", "Screenshot at %H:%M:%S") self.username = settings.value("username", "") settings.endGroup() settings.endGroup() if self.uploadAnon: self.imgur = pyimgur.Imgur("7163c05b94dcf99") else: self.imgur = pyimgur.Imgur("7163c05b94dcf99", "5132015d173997bbb52e1d9e093d882abed8d9f1", self.access_token, self.refresh_token)
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("uguu.se") settings.setValue("name-format", self.settingsDialog.group_name.input_name.text) settings.setValue("copy-link", self.settingsDialog.group_clipboard.checkbox_copy_link.checked) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("sftp") settings.setValue("host", self.settingsDialog.group_server.input_host.text) settings.setValue("port", int(self.settingsDialog.group_server.input_port.value)) settings.setValue("username", self.settingsDialog.group_server.input_username.text) settings.setValue("password", self.settingsDialog.group_server.input_password.text) settings.setValue("keyfile", self.settingsDialog.group_server.input_keyfile.text) settings.setValue("passphrase", self.settingsDialog.group_server.input_passphrase.text) settings.setValue("url", self.settingsDialog.group_location.input_url.text) settings.setValue("folder", self.settingsDialog.group_location.input_folder.text) settings.setValue("name-format", self.settingsDialog.group_location.input_name.text) settings.setValue("auth-method", self.settingsDialog.group_server.combo_auth.currentText) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("shell") settings.setValue("command", self.settingsDialog.group_shell.input_command.text) settings.setValue("copyOutput", str(self.settingsDialog.group_shell.output_is_url.checked)) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup('uploaders') settings.beginGroup('webdav') settings.setValue('url', self.settingsDialog.group_url.input_url.text) settings.setValue('username', self.settingsDialog.group_url.input_username.text) settings.setValue('password', self.settingsDialog.group_url.input_password.text) settings.setValue( 'copy-link', str(self.settingsDialog.group_url.check_copylink.checked)) settings.setValue('host-address', self.settingsDialog.group_url.input_public.text) settings.setValue('name-format', self.settingsDialog.group_screenshot.input_name.text) settings.setValue( 'save-file', str(self.settingsDialog.group_screenshot.check_savefile.checked)) settings.setValue( 'save-path', self.settingsDialog.group_screenshot.input_directory.text) settings.endGroup() settings.endGroup()
def saveSettings(self): settings = QSettings() settings.beginGroup("uploaders") settings.beginGroup("sftp") settings.setValue("host", self.settingsDialog.group_server.input_host.text) settings.setValue( "port", int(self.settingsDialog.group_server.input_port.value)) settings.setValue("username", self.settingsDialog.group_server.input_username.text) settings.setValue("password", self.settingsDialog.group_server.input_password.text) settings.setValue("keyfile", self.settingsDialog.group_server.input_keyfile.text) settings.setValue( "passphrase", self.settingsDialog.group_server.input_passphrase.text) settings.setValue("url", self.settingsDialog.group_location.input_url.text) settings.setValue("folder", self.settingsDialog.group_location.input_folder.text) settings.setValue("name-format", self.settingsDialog.group_location.input_name.text) settings.setValue( "auth-method", self.settingsDialog.group_server.combo_auth.currentText) settings.endGroup() settings.endGroup()