Added some smart filters for quote settings

This commit is contained in:
Veronica K. B. Olsen
2021-01-20 00:08:49 +01:00
parent 0a9749726f
commit 96bc88d045
3 changed files with 48 additions and 12 deletions
+9
View File
@@ -577,6 +577,15 @@ class Config:
# Check Certain Values for None
self.spellLanguage = self._checkNone(self.spellLanguage)
# If we're using straight quotes, disable auto-replace
if self.fmtSingleQuotes == ["'", "'"] and self.doReplaceSQuote:
logger.info("Using straight single quotes, so disabling auto-replace")
self.doReplaceSQuote = False
if self.fmtDoubleQuotes == ["\"", "\""] and self.doReplaceDQuote:
logger.info("Using straight double quotes, so disabling auto-replace")
self.doReplaceDQuote = False
return True
def saveConfig(self):