Dialog format error (#889)

* Remove redundant format tags in project class
* Be consistent about internal function mapping
This commit is contained in:
Veronica Berglyd Olsen
2021-09-11 16:14:35 +02:00
committed by GitHub
parent 3263ce5669
commit 22662fd5eb
3 changed files with 39 additions and 45 deletions
+3 -4
View File
@@ -163,7 +163,6 @@ class GuiTheme:
logger.verbose("Text 'N' Width: %d", self.textNWidth)
# Internal Mapping
self.makeAlert = self.theParent.makeAlert
self.tr = partial(QCoreApplication.translate, "GuiTheme")
return
@@ -401,7 +400,7 @@ class GuiTheme:
with open(themeConf, mode="r", encoding="utf-8") as inFile:
confParser.read_file(inFile)
except Exception as e:
self.makeAlert([
self.theParent.makeAlert([
self.tr("Could not load theme config file."), str(e)
], nwAlert.ERROR)
continue
@@ -434,7 +433,7 @@ class GuiTheme:
with open(syntaxPath, mode="r", encoding="utf-8") as inFile:
confParser.read_file(inFile)
except Exception as e:
self.makeAlert([
self.theParent.makeAlert([
self.tr("Could not load syntax file."), str(e)
], nwAlert.ERROR)
return []
@@ -773,7 +772,7 @@ class GuiIcons:
with open(themeConf, mode="r", encoding="utf-8") as inFile:
confParser.read_file(inFile)
except Exception as e:
self.makeAlert([
self.theParent.makeAlert([
self.tr("Could not load theme config file."), str(e)
], nwAlert.ERROR)
continue